Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run benchmarks and tests in parallel and cache packages node_modules #333

Merged
merged 5 commits into from
Sep 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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