summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-10-15 22:54:43 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2019-10-15 22:54:43 -0700
commite8124729fbeaf159ae615f61980ee10018ed5134 (patch)
tree4295ef90061e4dd09c2dd41525876ceb003f2607 /.travis.yml
parent4ccb49bad31b3c4a9cc7c6138cae93bd60a7bec4 (diff)
Disable ccache on arm64 build
Follow up https://github.com/ruby/ruby/pull/2559 According to experiments in https://github.com/ruby/ruby/pull/2560, disabling cache seems to make arm64 build succeed.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 15 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 42965bf..7c6cf0a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -73,7 +73,6 @@ env:
- |-
${BEFORE_INSTALL}
tool/travis_retry.sh sudo -E apt-get $travis_apt_get_options install \
- ccache \
gcc-8 \
g++-8 \
libffi-dev \
@@ -127,6 +126,12 @@ env:
name: arm64-linux
arch: arm64
<<: *gcc-8
+ # arm64 build always fails with cache
+ cache:
+ ccache: false
+ directories: []
+ env:
+ - DISABLE_CCACHE=true
- &jemalloc
name: --with-jemalloc
@@ -425,12 +430,14 @@ before_script:
- chmod -R a-w .
- chmod -R u+w build config_1st config_2nd
- cd build
- - ccache --show-stats
- |-
- case "$CC" in
- gcc*) CC="ccache $CC${GCC_FLAGS:+ }$GCC_FLAGS -fno-diagnostics-color";;
- clang*) CC="ccache $CC${GCC_FLAGS:+ }$GCC_FLAGS -fno-color-diagnostics";;
- esac
+ if [ "$DISABLE_CCACHE" != true ]; then
+ ccache --show-stats
+ case "$CC" in
+ gcc*) CC="ccache $CC${GCC_FLAGS:+ }$GCC_FLAGS -fno-diagnostics-color";;
+ clang*) CC="ccache $CC${GCC_FLAGS:+ }$GCC_FLAGS -fno-color-diagnostics";;
+ esac
+ fi
- |-
[ ! -f config.cache ] ||
[ "$CC" = "`sed -n s/^ac_cv_prog_CC=//p config.cache`" ] ||
@@ -458,7 +465,8 @@ before_script:
exit 1
fi
fi
- - ccache --show-stats
+ - |-
+ [ "$DISABLE_CCACHE" = true ] || ccache --show-stats
- |-
[ -z "${GEMS_FOR_TEST}" ] ||
$RUBY_PREFIX/bin/gem install --no-document $GEMS_FOR_TEST