Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f497358

Browse files
committed
chore(travis): don't break the build when travis cache is empty
`du` returns error code 2 when any of the directories don't exist which breaks the build. this scenario is common when the cache was emptied or when travis is building forks that don't have travis cache enabled
1 parent 500d352 commit f497358

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ matrix:
3838
- env: "JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=browserstack"
3939

4040
install:
41-
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/
41+
# Check the size of caches
42+
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/ || true
4243
# - npm config set registry http://23.251.144.68
4344
# Disable the spinner, it looks bad on Travis
4445
- npm config set spin false

0 commit comments

Comments
 (0)