Skip to content

Commit d82a2ea

Browse files
committed
fix(build): adjust coverage scripts
1 parent bd036fc commit d82a2ea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ install:
77
- npm install codecov -g
88
- npm ci
99
script:
10-
- npm run ci
10+
- npm test
1111
after_success:
12-
- codecov
12+
- npm run coverage

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
"scripts": {
77
"clean": "rm -rf dist coverage .nyc_output .ng_pkg_build && rm -f dist.tgz",
88
"lint": "tslint {lib,schematics}/**/*.ts -e **/files/**",
9-
"test": "npm run lint && npm run format:test && npm run lib:test && npm run schm:test",
9+
"test": "npm run lint && npm run format:test && nyc mocha {lib,schematics}/**/*.test.ts --require ts-node/register --require source-map-support/register",
1010
"build": "npm run clean && npm run lib:build && npm run schm:build",
11-
"coverage": "nyc mocha {lib,schematics}/**/*.test.ts --require ts-node/register --require source-map-support/register",
12-
"ci": "npm run lint && npm run format:test && npm run coverage",
11+
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
1312
"release": "npm run test && standard-version && git push --follow-tags origin master && npm run build && npm publish ./dist --access public",
1413
"format": "prettier **/*.{ts,json,md} --write",
1514
"format:test": "prettier **/*.{ts,json,md} --list-different",

0 commit comments

Comments
 (0)