summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-17 06:20:01 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-17 06:20:01 +0000
commit6b136a044205f6e6b66df68cd2da2a9c3e952a7d (patch)
tree340b16cb2b638a619ddb6384f53a0fdba1df2942 /.travis.yml
parentd4b6198d8f13229123ebbcfcdfc4685a913b1ac8 (diff)
Try disabling Travis cache on darwin
to check if it resolves "Permission denied" problem. https://travis-ci.org/ruby/ruby/jobs/507381339 https://travis-ci.org/ruby/ruby/jobs/507392198 TBH I'm not exactly sure why it happens, but I don't have infinite time to understand this. It would be appreciated to identify the root cause and remove `DISABLE_CACHE` again if you're sure your patch fixes the problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 3bf1da2136..9bda0aa721 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -278,6 +278,10 @@ env:
- TEST_ALL_OPTS="--tty=no --excludes=\$(TESTSDIR)/excludes/_travis/osx"
# Disabling -j3 because it seems to cause a hang on building Ruby: https://travis-ci.org/ruby/ruby/jobs/471021727
- JOBS=
+ # Disabling cache because x86_64-darwin build randomly fails by "Permission denied" which we don't know why:
+ # https://travis-ci.org/ruby/ruby/jobs/507381339
+ # https://travis-ci.org/ruby/ruby/jobs/507392198
+ - DISABLE_CACHE=1
- &universal-darwin17
name: uinversal.x86_64h-darwin17
@@ -319,6 +323,10 @@ before_script:
- rm -fr .ext autom4te.cache
- echo $TERM
- |-
+ if [ -n $DISABLE_CACHE ]; then
+ rm -fr ~/.downloaded-cache ~/config_2nd
+ fi
+ - |-
[ -d ~/.downloaded-cache ] ||
mkdir ~/.downloaded-cache
- ln -s ~/.downloaded-cache