File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1+ .nyc_output /
12node_modules /
23coverage /
34npm-debug.log
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ before_install:
5858 elif node_version_lt '6.0'; then npm_use_module 'mocha' '5.2.0'
5959 elif node_version_lt '8.0'; then npm_use_module 'mocha' '6.2.2'
6060 fi
61+ - |
62+ # Configure nyc for testing
63+ if node_version_lt '4.0'; then npm_use_module 'nyc' '10.3.2'
64+ elif node_version_lt '6.0'; then npm_use_module 'nyc' '11.9.0'
65+ elif node_version_lt '8.0'; then npm_use_module 'nyc' '14.1.1'
66+ fi
6167 # Update Node.js modules
6268 - |
6369 # Prune & rebuild node_modules
@@ -68,15 +74,13 @@ before_install:
6874script :
6975 - |
7076 # Run test script
71- npm run-script test-travis
77+ npm run-script test-ci
7278 - |
7379 # Run linting, depending on eslint install
7480 if npm_module_installed 'eslint'; then npm run-script lint
7581 fi
7682after_script :
7783 - |
7884 # Upload coverage to coveralls
79- if [[ -f ./coverage/lcov.info ]]; then
80- npm install --save-dev [email protected] 81- coveralls < ./coverage/lcov.info
82- fi
85+ npm install --save-dev coveralls@2
86+ nyc report --reporter=text-lcov | coveralls
Original file line number Diff line number Diff line change 2525 "devDependencies" : {
2626 "eslint" : " 6.8.0" ,
2727 "eslint-plugin-markdown" : " 1.0.2" ,
28- "istanbul" : " 0.4.5" ,
2928 "mkdirp" : " 0.5.4" ,
3029 "mocha" : " 7.1.1" ,
30+ "nyc" : " 15.0.1" ,
3131 "pend" : " 1.2.0" ,
3232 "require-all" : " 3.0.0" ,
3333 "rimraf" : " 2.6.3" ,
4545 "scripts" : {
4646 "lint" : " eslint --plugin markdown --ext js,md ." ,
4747 "test" : " mocha --reporter spec --bail --check-leaks test/" ,
48- "test-cov " : " istanbul cover node_modules/mocha/bin/_mocha -- -- reporter dot --check-leaks test/ " ,
49- "test-travis " : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- -- reporter spec --check-leaks test/ "
48+ "test-ci " : " nyc -- reporter=text npm test" ,
49+ "test-cov " : " nyc --reporter=html -- reporter=text npm test"
5050 }
5151}
You can’t perform that action at this time.
0 commit comments