Skip to content

Commit

Permalink
ci: tweaked caching settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Aug 9, 2018
1 parent b26762e commit bf13282
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
21 changes: 11 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
language: node_js
node_js:
- stable
- lts/carbon
- lts/boron
sudo: false

env:
Expand All @@ -14,24 +10,29 @@ before_install:
- 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
after_script: if [[ $GH_TOKEN ]]; then greenkeeper-lockfile-upload; fi;
after_success: cat ./coverage/lcov.info | coveralls

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

stages:
- Test
- Release

oldNode: &oldNode
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
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf13282

Please sign in to comment.