Skip to content

Commit

Permalink
Move coverage upload to .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jan 25, 2019
1 parent 2cf7cdd commit d712299
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 296 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ script: npm run testonly
jobs:
include:
- node_js: 'lts/*'
script: npm run test:ci
script: npm run test:ci && bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
- stage: deploy
if: branch = master OR tag IS present
script: echo "Deploying..."
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
"scripts": {
"watch": "node ./resources/watch.js",
"test": "npm run lint && npm run check && npm run testonly",
"test:ci": "npm run lint && npm run check && npm run testonly:codecov",
"test:ci": "npm run lint && npm run check && npm run testonly:cover",
"t": "mocha --require @babel/register --require @babel/polyfill",
"testonly": "mocha --throw-deprecation --require @babel/register --require @babel/polyfill --check-leaks --full-trace --timeout 15000 src/**/__tests__/**/*-test.js",
"testonly:cover": "nyc --clean --skip-full --reporter html --reporter text -- npm run testonly",
"testonly:codecov": "nyc --clean --reporter json --reporter text-summary -- npm run testonly && codecov -f coverage/coverage-final.json",
"testonly:cover": "nyc --clean --skip-full --reporter json --reporter html --reporter text -- npm run testonly",
"lint": "eslint --report-unused-disable-directives src || (printf '\\033[33mTry: \\033[7m npm run lint -- --fix \\033[0m\\n' && exit 1)",
"benchmark": "node ./resources/benchmark.js",
"prettier": "prettier --write --list-different 'src/**/*.js'",
Expand Down Expand Up @@ -60,7 +59,6 @@
"beautify-benchmark": "0.2.4",
"benchmark": "2.1.4",
"chai": "4.2.0",
"codecov": "3.1.0",
"eslint": "5.12.1",
"eslint-plugin-flowtype": "3.2.1",
"eslint-plugin-prettier": "3.0.1",
Expand Down
Loading

0 comments on commit d712299

Please sign in to comment.