Skip to content

Commit

Permalink
Remove cache from Travis, begin using npm ci
Browse files Browse the repository at this point in the history
We have thought about moving to use package-lock.json the way NPM suggests, and at the same time have begun having issues with Travis caches. To address both at the same time, remove the cache from Travis, and make up the time by moving to package-lock.json + npm ci for install.
  • Loading branch information
Ray Schamp committed Jun 28, 2018
1 parent e90b344 commit 755cdd9
Show file tree
Hide file tree
Showing 3 changed files with 16,051 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.DS_Store

# NPM
package-lock.json
/node_modules
npm-*

Expand Down
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ env:
matrix:
- NPM_SCRIPT="tap:unit -- --jobs=4"
- NPM_SCRIPT="tap:integration -- --jobs=4"
sudo: false
cache:
directories:
- node_modules
install:
- npm --production=false install
- npm --production=false update
- "$HOME/.npm"
install: npm ci
script: npm run $NPM_SCRIPT
jobs:
include:
Expand Down
Loading

0 comments on commit 755cdd9

Please sign in to comment.