diff options
author | James McCoy <jamessan@jamessan.com> | 2018-05-01 07:02:11 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-05-01 07:02:44 -0400 |
commit | d5da357925dffb84c9c6c49fd6c1fbdf6508cb7f (patch) | |
tree | 1556355f8990b5a79abaf46e23f21f7c1428990b /ci/common | |
parent | 58b210e1146f5fe3dd1affe4ab81a3cf48ae27ab (diff) | |
download | rneovim-d5da357925dffb84c9c6c49fd6c1fbdf6508cb7f.tar.gz rneovim-d5da357925dffb84c9c6c49fd6c1fbdf6508cb7f.tar.bz2 rneovim-d5da357925dffb84c9c6c49fd6c1fbdf6508cb7f.zip |
travis: Enable ccache
Diffstat (limited to 'ci/common')
-rw-r--r-- | ci/common/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh index 53d20ebf9b..a3cf64d47a 100644 --- a/ci/common/build.sh +++ b/ci/common/build.sh @@ -30,7 +30,9 @@ build_deps() { mkdir -p "${DEPS_DOWNLOAD_DIR}" # Use cached dependencies if $CACHE_MARKER exists. - if test -f "${CACHE_MARKER}" && ! test "${CACHE_ENABLE}" = "false" ; then + if test "${CACHE_ENABLE}" = "false" ; then + export CCACHE_RECACHE=1 + elif test -f "${CACHE_MARKER}" ; then echo "Using third-party dependencies from Travis cache (last update: $(_stat "${CACHE_MARKER}"))." cp -r "${HOME}/.cache/nvim-deps"/. "${DEPS_BUILD_DIR}" cp -r "${HOME}/.cache/nvim-deps-downloads" "${DEPS_DOWNLOAD_DIR}" |