Skip to content

Commit

Permalink
Cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
bingneef committed May 7, 2019
1 parent 44760bc commit 5d597f0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,28 @@ language: node_js
sudo: false
node_js:
- 11.13.0

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"

restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
install:
- yarn install
- yarn install --frozen-lockfile
save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn

stages:
- test
- build
- lint

jobs:
include:
- stage: test
Expand Down

0 comments on commit 5d597f0

Please sign in to comment.