Skip to content

Commit

Permalink
Run benchmarks and tests in parallel and cache packages node_modules (#…
Browse files Browse the repository at this point in the history
…333)

* Run benchmarks and tests in parallel

* Fix benchmark npm script

* Cache site node_modules

* Add all package node_modules to travis cache

* Commit for travis build
  • Loading branch information
emmatown authored Sep 25, 2017
1 parent 54f054a commit 77bce67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ language: node_js
node_js:
- "8"

env:
matrix:
- NPM_SCRIPT=benchmark
- NPM_SCRIPT=test

cache:
directories:
- node_modules

script: npm run $NPM_SCRIPT

before_install:
- npm install codecov

Expand All @@ -19,3 +26,11 @@ after_success:
cache:
directories:
- node_modules
- packages/site/node_modules
- packages/react-emotion/node_modules
- packages/preact-emotion/node_modules
- packages/babel-plugin-emotion/node_modules
- packages/emotion-utils/node_modules
- packages/benchmarks/node_modules
- packages/emotion-server/node_modules
- packages/emotion/node_modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "lerna run build --parallel",
"test:size": "npm-run-all clean rollup:umd size",
"clean": "lerna run clean --parallel",
"test": "npm-run-all -p lint:check coverage test:size && npm run benchmark",
"test": "npm-run-all -p lint:check coverage test:size",
"coverage": "jest --coverage --no-cache --ci --runInBand",
"lint:check": "eslint .",
"test:watch": "jest --watch --no-cache",
Expand Down

0 comments on commit 77bce67

Please sign in to comment.