Skip to content

Commit

Permalink
ci(travis): cache npm modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kontrollanten committed Feb 27, 2019
1 parent 8668462 commit 9acb867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ node_js:
cache:
directories:
- "travis_phantomjs"
- "$HOME/.npm"

before_install:
- "export PHANTOMJS_VERSION=2.1.1"
- "hash -r"
Expand All @@ -18,3 +20,6 @@ before_install:
- "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "hash -r"
- "phantomjs --version"

install:
- npm ci

0 comments on commit 9acb867

Please sign in to comment.