1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

try nyc instead of instanbul

This commit is contained in:
Dave Conway-Jones 2020-10-19 21:33:50 +01:00
parent 6f351943cb
commit 43f7326c12
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,9 @@ before_install:
before_script:
# Remove the './node_modules/.bin:' entry, see https://github.com/travis-ci/travis-ci/issues/8813
- export PATH=`echo ${PATH} | sed -re 's,(^|:)(./)?node_modules/.bin($|:),\1,'`
- npm install -g istanbul grunt-cli coveralls
- npm install -g nyc grunt-cli coveralls
- npm install node-red
script:
- istanbul cover grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | $(npm get prefix)/bin/coveralls || true ) && rm -rf coverage
# - istanbul cover grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | $(npm get prefix)/bin/coveralls || true ) && rm -rf coverage
# - nyc --check-coverage --reporter=text --reporter=lcovonly --reporter=text grunt && rm -rf coverage
- nyc grunt && rm -rf coverage .nyc_output

View File

@ -1,3 +1,3 @@
# check coverage of tests... and browse report
istanbul cover ./node_modules/.bin/grunt --report lcovonly && istanbul report html
nyc --check-coverage --reporter=html grunt
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome coverage/index.html