Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Switch 'isparta' for 'nyc'
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 16, 2019
1 parent d09c745 commit d7112a2
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 200 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ before_install:
- npm config set spin false --global

script:
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover:lcov; else npm run testonly; fi
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover; else npm run testonly; fi

after_failure:
- (cd resources; python travis_after_all.py)

after_success:
- (cd resources; python travis_after_all.py)
- export $(cat resources/.to_export_back)
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then cat ./coverage/coverage-final.json | ./node_modules/coveralls/bin/coveralls.js; fi

deploy:
provider: npm
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"build": "rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow",
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",
"watch": "node resources/watch.js",
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha",
"cover": "nyc npm run testonly",
"preversion": "npm test",
"start": "node -r babel-register examples/index.js"
},
Expand All @@ -78,9 +77,9 @@
"express": "4.16.4",
"flow-bin": "0.96.0",
"graphql": "14.3.0",
"isparta": "4.1.1",
"mocha": "6.1.4",
"multer": "1.4.1",
"nyc": "14.1.1",
"prettier": "1.17.1",
"restify": "4.3.2",
"sane": "4.1.0",
Expand Down
Loading

0 comments on commit d7112a2

Please sign in to comment.