Skip to content

Commit

Permalink
fix: ci coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vip30 committed Mar 27, 2019
1 parent b0100d2 commit 8df71ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ before_script:
- npm install
- lerna bootstrap
script:
- npm run build
- npm test
after_success: npm run coverage
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"build": "sh ./scripts/build.sh",
"test": "nyc --require ts-node/register mocha packages/**/*.spec.ts --reporter spec",
"test": "nyc mocha --reporter spec",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"clean": "sh ./scripts/clean.sh",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
Expand Down Expand Up @@ -70,9 +70,14 @@
"include": [
"packages/**/*.ts"
],
"extension": [
".ts"
],
"exclude": [
"packages/**/*.spec.ts",
"packages/**/*.d.ts"
"packages/**/*.d.ts",
"template",
"types"
],
"require": [
"ts-node/register"
Expand Down
3 changes: 3 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--compilers ts-node/register
--require source-map-support/register
packages/**/*.spec.ts

0 comments on commit 8df71ab

Please sign in to comment.