Skip to content

Commit

Permalink
chore(travis): switch to nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Jul 13, 2018
1 parent 5e4f86a commit a3007a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 208 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ node_js:
- v8
- v6
before_install:
- npm install -g coveralls @patrickhulce/scripts
- npm install -g coveralls @patrickhulce/scripts nyc
script:
- npm run test:lint
- npm run test:coverage
- nyc npm run test:unit
after_success:
- cat ./coverage/lcov.info | coveralls || echo 'Failed to upload to coveralls...'
- nyc report --reporter=lcov | coveralls || echo 'Failed to upload to coveralls...'
- hulk npm-publish --yes
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"test": "npm run test:lint && npm run test:unit",
"test:unit": "mocha --reporter spec --require test/bootstrap 'test/**/*.test.js'",
"test:lint": "lint",
"test:coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --require test/bootstrap 'test/**/*.test.js'",
"test:watch": "mocha --watch --reporter dot --require test/bootstrap 'test/**/*.test.js'"
},
"repository": {
Expand Down Expand Up @@ -46,7 +45,6 @@
"chai": "^3.5.0",
"css-loader": "^1.0.0",
"file-loader": "^1.1.11",
"istanbul": "^0.4.5",
"mini-css-extract-plugin": "^0.4.1",
"mocha": "^3.2.0",
"rimraf": "^2.6.0",
Expand Down
Loading

0 comments on commit a3007a1

Please sign in to comment.