Skip to content

Commit

Permalink
Internal: only build once on CI (#5177)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Jan 20, 2017
1 parent d7a0ef1 commit 3a0d159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ MAKEFLAGS = -j1

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
BABEL_ENV=development ./node_modules/.bin/gulp build
./node_modules/.bin/gulp build

build-dist: build
cd packages/babel-polyfill; \
Expand All @@ -16,7 +16,7 @@ build-dist: build

watch: clean
rm -rf packages/*/lib
BABEL_ENV=development ./node_modules/.bin/gulp watch
./node_modules/.bin/gulp watch

lint:
./node_modules/.bin/eslint packages/ --format=codeframe
Expand All @@ -42,22 +42,15 @@ clean-all:
rm -rf packages/*/node_modules
make clean

# without lint
test-only:
./scripts/test.sh
make test-clean

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:
NODE_ENV=test make bootstrap
make test-cov
NODE_ENV=test BABEL_ENV=cov make bootstrap
./scripts/test-cov.sh
./node_modules/.bin/codecov -f coverage/coverage-final.json

publish:
Expand All @@ -68,7 +61,6 @@ publish:
# not using lerna independent mode atm, so only update packages that have changed since we use ^
./node_modules/.bin/lerna publish --only-explicit-updates
make clean
#./scripts/build-website.sh

bootstrap:
make clean-all
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"transform-flow-strip-types"
],
"env": {
"test": {
"cov": {
"auxiliaryCommentBefore": "istanbul ignore next",
"plugins": [
"istanbul"
Expand Down

0 comments on commit 3a0d159

Please sign in to comment.