Skip to content

Commit

Permalink
chore(travis): turn on caching for node_modules and bower_components …
Browse files Browse the repository at this point in the history
…directories

The cache behavior is documented at http://docs.travis-ci.com/user/caching/

This commit also disabled our custom caching via npm-bundler-deps.sh
  • Loading branch information
IgorMinar committed Feb 19, 2015
1 parent ef894c8 commit 507ee2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ language: node_js
node_js:
- '0.10'

cache:
directories:
- node_modules
- bower_components
- docs/bower_components

branches:
except:
- /^g3_.*$/
Expand Down Expand Up @@ -32,12 +38,12 @@ matrix:
- env: "JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=browserstack"

install:
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/
# - npm config set registry http://23.251.144.68
# Disable the spinner, it looks bad on Travis
- npm config set spin false
# Log HTTP requests
- npm config set loglevel http
- time ./scripts/travis/npm-bundle-deps.sh
- time npm install

before_script:
Expand Down

0 comments on commit 507ee2d

Please sign in to comment.