Optimize travis builds (#419)
* Optimize travis builds * Use yarn * Fix babel tests to correctly fail * Check against 7.0 branch of babel
This commit is contained in:
7
Makefile
7
Makefile
@@ -8,19 +8,18 @@ clean: ; rm -rf ./build
|
||||
|
||||
bootstrap-babel: clean
|
||||
mkdir ./build
|
||||
git clone --depth=1 --branch=master https://github.com/babel/babel.git ./build/babel
|
||||
git clone --depth=1 --branch=7.0 https://github.com/babel/babel.git ./build/babel
|
||||
cd ./build/babel; \
|
||||
make bootstrap
|
||||
find ./build/babel/packages -type d -name 'babylon' -prune -exec rm -rf '{}' \; -exec ln -s '../../../../../' '{}' \;
|
||||
|
||||
test-babel:
|
||||
BABEL_ENV=test npm run build
|
||||
BABEL_ENV=test yarn run build
|
||||
# in case babel ever switches to nyc: filter its config out of package.json
|
||||
cd ./build/babel; \
|
||||
jq "del(.nyc)" package.json > package.nonyc.json; \
|
||||
mv -f package.nonyc.json package.json; \
|
||||
../../node_modules/.bin/nyc --no-instrument --no-source-map --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts; \
|
||||
mv .nyc_output ../../.nyc_output
|
||||
../../node_modules/.bin/nyc --no-instrument --no-source-map --reporter=json --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts; \
|
||||
|
||||
bootstrap-flow: clean
|
||||
mkdir ./build
|
||||
|
||||
Reference in New Issue
Block a user