Skip to content

Commit

Permalink
ci: restore caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Aug 9, 2018
1 parent 625a9ee commit 64dc303
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
language: node_js
sudo: false
node_js:
- stable
- lts/carbon
- lts/boron

before_install:
- npm i -g greenkeeper-lockfile
- if [[ $GH_TOKEN ]]; then ./prepare-gpg-key.sh; fi;
- greenkeeper-lockfile-update

install: npm install

script:
- npm run tslint
- npm test -- --forbid-only --forbid-pending
Expand All @@ -16,19 +22,13 @@ stages:
- Test
- Release

oldNode: &oldNode
before_cache: rm -rf ./node_modules/.cache
cache:
directories:
- node_modules
before_cache: rm -rf ./node_modules/.cache
cache:
directories:
- node_modules

jobs:
include:
- node_js: stable
- <<: *oldNode
node_js: lts/carbon
- <<: *oldNode
node_js: lts/boron
- if: branch=master
stage: Release
node_js: stable
Expand Down

0 comments on commit 64dc303

Please sign in to comment.