From 93121e6de3b593d356193dd389f67aa59a6c1aaa Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Mon, 18 Sep 2017 23:10:27 +0200 Subject: [PATCH 1/3] Fix Travis build --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4b6fddac8..fb6dd87f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,10 @@ node_js: - '6' - '4' +before_install: +- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.2 +- export PATH=$HOME/.yarn/bin:$PATH + before_script: - yarn run bootstrap && yarn run build From 40e59a27fceff2ba4d7bca6b62edb376313144c8 Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Mon, 18 Sep 2017 23:24:47 +0200 Subject: [PATCH 2/3] Increase CLI timeout to 25s --- packages/babel-minify/__tests__/cli-tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-minify/__tests__/cli-tests.js b/packages/babel-minify/__tests__/cli-tests.js index db3f227d4..2a73afcfb 100644 --- a/packages/babel-minify/__tests__/cli-tests.js +++ b/packages/babel-minify/__tests__/cli-tests.js @@ -1,4 +1,5 @@ jest.autoMockOff(); +jest.setTimeout(25000); const { spawn } = require("child_process"); const path = require("path"); From 64999efa3e93ff6416562ffd52395c1545302053 Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Mon, 18 Sep 2017 23:33:19 +0200 Subject: [PATCH 3/3] Use maxWorkers option in jest --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a2fe08cbf..ac82d15e4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "gulp build", "changelog": "lerna-changelog", "clean": "lerna clean", - "coverage": "jest --coverage", + "coverage": "jest --coverage --maxWorkers=4", "coverage-ci": "codecov -f coverage/coverage-final.json", "eslint": "eslint packages/*/src/ packages/*/__tests__/ utils/*.js scripts/*.js", "eslint-fix": "eslint --fix packages/*/src/ packages/*/__tests__/ utils/*.js scripts/*.js", @@ -16,7 +16,7 @@ "lint": "npm run format-check && npm run eslint", "publish": "git pull origin master --rebase && npm run build && npm test && lerna publish", "publish-internal": "git pull origin master --rebase && npm run build && NPM_DIST_TAG=internal ./node_modules/.bin/lerna publish --skip-git", - "test": "jest", + "test": "jest --maxWorkers=4", "test-ci": "npm run bootstrap && npm run build && npm run coverage", "updated": "lerna updated", "watch": "gulp watch"