Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve caching performance in CI (#3310)
* add precache stage to warm cache for jobs based default Node.js version
* re-enable caching for node tests of v6 and v4

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 5, 2018
1 parent ff9f3cf commit 4ae26b2
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit 4ae26b2

Please sign in to comment.