Skip to content

Commit 507ee2d

Browse files
committed
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
1 parent ef894c8 commit 507ee2d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ language: node_js
22
node_js:
33
- '0.10'
44

5+
cache:
6+
directories:
7+
- node_modules
8+
- bower_components
9+
- docs/bower_components
10+
511
branches:
612
except:
713
- /^g3_.*$/
@@ -32,12 +38,12 @@ matrix:
3238
- env: "JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=browserstack"
3339

3440
install:
41+
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/
3542
# - npm config set registry http://23.251.144.68
3643
# Disable the spinner, it looks bad on Travis
3744
- npm config set spin false
3845
# Log HTTP requests
3946
- npm config set loglevel http
40-
- time ./scripts/travis/npm-bundle-deps.sh
4147
- time npm install
4248

4349
before_script:

0 commit comments

Comments
 (0)