Internal: Run coverage only once (#5182)
This commit is contained in:
parent
3a0d1599cd
commit
d76092b2dd
33
.travis.yml
33
.travis.yml
@ -6,28 +6,31 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
node_js:
|
node_js:
|
||||||
- '7'
|
- '6'
|
||||||
- '6'
|
- '5'
|
||||||
- '5'
|
- '4'
|
||||||
- '4'
|
- '0.12'
|
||||||
- '0.12'
|
|
||||||
script:
|
env:
|
||||||
- 'if [ -n "${LINT-}" ]; then make lint ; fi'
|
- JOB=test
|
||||||
- 'if [ -z "${LINT-}" ]; then make test-ci ; fi'
|
|
||||||
- 'if [ -n "${FLOW-}" ]; then make flow ; fi'
|
script:
|
||||||
|
- 'if [ "$JOB" = "test" ]; then make test-ci; fi'
|
||||||
|
- 'if [ "$JOB" = "test-coverage" ]; then make test-ci-coverage; fi'
|
||||||
|
- 'if [ "$JOB" = "lint" ]; then make lint && make flow; fi'
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
|
- node_js: "7"
|
||||||
|
env: JOB=test-coverage
|
||||||
- node_js: "node"
|
- node_js: "node"
|
||||||
env:
|
env: JOB=lint
|
||||||
- LINT: true
|
|
||||||
- FLOW: true
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
on_success: change
|
|
||||||
on_failure: always
|
|
||||||
slack:
|
slack:
|
||||||
|
on_success: change
|
||||||
|
on_failure: always
|
||||||
rooms:
|
rooms:
|
||||||
# Generate with
|
# Generate with
|
||||||
# travis encrypt "babeljs:<token>#activity" --add notifications.slack.rooms
|
# travis encrypt "babeljs:<token>#activity" --add notifications.slack.rooms
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -49,6 +49,10 @@ test-only:
|
|||||||
test: lint test-only
|
test: lint test-only
|
||||||
|
|
||||||
test-ci:
|
test-ci:
|
||||||
|
NODE_ENV=test make bootstrap
|
||||||
|
make test-only
|
||||||
|
|
||||||
|
test-ci-coverage:
|
||||||
NODE_ENV=test BABEL_ENV=cov make bootstrap
|
NODE_ENV=test BABEL_ENV=cov make bootstrap
|
||||||
./scripts/test-cov.sh
|
./scripts/test-cov.sh
|
||||||
./node_modules/.bin/codecov -f coverage/coverage-final.json
|
./node_modules/.bin/codecov -f coverage/coverage-final.json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user