Internal: only build once on CI (#5177)

This commit is contained in:
Henry Zhu 2017-01-20 17:46:09 -05:00 committed by GitHub
parent d7a0ef19f1
commit 3a0d1599cd
2 changed files with 6 additions and 14 deletions

View File

@ -2,10 +2,10 @@ MAKEFLAGS = -j1
export NODE_ENV = test export NODE_ENV = test
.PHONY: build build-dist watch lint fix clean test-clean test-only test test-cov test-ci publish bootstrap .PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap
build: clean build: clean
BABEL_ENV=development ./node_modules/.bin/gulp build ./node_modules/.bin/gulp build
build-dist: build build-dist: build
cd packages/babel-polyfill; \ cd packages/babel-polyfill; \
@ -16,7 +16,7 @@ build-dist: build
watch: clean watch: clean
rm -rf packages/*/lib rm -rf packages/*/lib
BABEL_ENV=development ./node_modules/.bin/gulp watch ./node_modules/.bin/gulp watch
lint: lint:
./node_modules/.bin/eslint packages/ --format=codeframe ./node_modules/.bin/eslint packages/ --format=codeframe
@ -42,22 +42,15 @@ clean-all:
rm -rf packages/*/node_modules rm -rf packages/*/node_modules
make clean make clean
# without lint
test-only: test-only:
./scripts/test.sh ./scripts/test.sh
make test-clean make test-clean
test: lint test-only test: lint test-only
test-cov: clean
# rebuild with test
rm -rf packages/*/lib
BABEL_ENV=test ./node_modules/.bin/gulp build
./scripts/test-cov.sh
test-ci: test-ci:
NODE_ENV=test make bootstrap NODE_ENV=test BABEL_ENV=cov make bootstrap
make test-cov ./scripts/test-cov.sh
./node_modules/.bin/codecov -f coverage/coverage-final.json ./node_modules/.bin/codecov -f coverage/coverage-final.json
publish: publish:
@ -68,7 +61,6 @@ publish:
# not using lerna independent mode atm, so only update packages that have changed since we use ^ # not using lerna independent mode atm, so only update packages that have changed since we use ^
./node_modules/.bin/lerna publish --only-explicit-updates ./node_modules/.bin/lerna publish --only-explicit-updates
make clean make clean
#./scripts/build-website.sh
bootstrap: bootstrap:
make clean-all make clean-all

View File

@ -64,7 +64,7 @@
"transform-flow-strip-types" "transform-flow-strip-types"
], ],
"env": { "env": {
"test": { "cov": {
"auxiliaryCommentBefore": "istanbul ignore next", "auxiliaryCommentBefore": "istanbul ignore next",
"plugins": [ "plugins": [
"istanbul" "istanbul"