Skip to content

Commit 318efc4

Browse files
committed
chore(build): Fix travis.yml to call coverage instead of test
1 parent ded9162 commit 318efc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ before_install:
1818
before_script:
1919
- npm prune
2020
script:
21-
- npm run test
21+
- npm run coverage
2222
- npm run build
2323
after_success:
2424
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
2525
- python travis_after_all.py
2626
- export $(cat .to_export_back) &> /dev/null
27-
- (cd coverage && bash <(curl -s https://codecov.io/bash))
27+
- bash <(curl -s https://codecov.io/bash)
2828
- npm run semantic-release
2929
branches:
3030
only:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
6262
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
6363
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
64-
"cover": "nyc npm t",
64+
"coverage": "nyc npm run test",
6565
"lint": "eslint src test *.js",
6666
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
6767
"watch": "babel-node ./resources/watch.js",

0 commit comments

Comments
 (0)