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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve caching performance in CI #3310

Merged
merged 2 commits into from Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion .travis.yml
@@ -1,6 +1,7 @@
# these are executed in order. each must pass for the next to be run
stages:
- smoke # this ensures a "user" install works properly
- precache # warm up cache for default Node.js version
- lint # lint code and docs
- test # all tests

Expand All @@ -20,13 +21,18 @@ jobs:
- &node
script: npm start test.node
node_js: '8'
cache: false

- <<: *node
node_js: '6'
cache:
directories:
- node_modules

- <<: *node
node_js: '4'
cache:
directories:
- node_modules

- script: npm start test.bundle test.browser
before_script: mkdir -p .karma
Expand Down Expand Up @@ -56,6 +62,9 @@ jobs:
- <<: *smoke
node_js: '4'

- stage: precache
script: true

notifications:
email: false
urls:
Expand Down