Skip to content

Commit

Permalink
Fix nyc not working in Windows env
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Feb 5, 2020
1 parent 8655e0b commit 784e294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
os:
- linux
- osx
- windows
language: node_js
node_js:
- '12'
- '10'
- '8'
jobs:
include:
- os: windows
script: npm run test-windows
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"node": ">=8"
},
"scripts": {
"test": "xo && nyc ava && tsd"
"test": "xo && nyc ava && tsd",
"test-windows": "xo && ava && tsd"
},
"files": [
"index.js",
Expand Down

0 comments on commit 784e294

Please sign in to comment.