From 507ee2d9bac77841681282dfcba9297dda576b41 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 18 Feb 2015 23:17:14 -0800 Subject: [PATCH] chore(travis): turn on caching for node_modules and bower_components 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 --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d07f25bb7938..e8ba55a2496f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,12 @@ language: node_js node_js: - '0.10' +cache: + directories: + - node_modules + - bower_components + - docs/bower_components + branches: except: - /^g3_.*$/ @@ -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: