aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-11 13:31:10 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-03-11 15:38:18 +0100
commitb0b656dd37567dea5e3f58e7821c7442831403cb (patch)
treeb650277328b9e4ac493ac861a597571668cbac4a /ci
parent9a0147754c4301a1f94fb339c44666edd22b3bbb (diff)
downloadrneovim-b0b656dd37567dea5e3f58e7821c7442831403cb.tar.gz
rneovim-b0b656dd37567dea5e3f58e7821c7442831403cb.tar.bz2
rneovim-b0b656dd37567dea5e3f58e7821c7442831403cb.zip
ci/travis: rename $BUILD_NVIM_DEPS to $CACHE_ENABLE
Diffstat (limited to 'ci')
-rw-r--r--ci/common/build.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh
index 13305c0bad..772b696969 100644
--- a/ci/common/build.sh
+++ b/ci/common/build.sh
@@ -20,14 +20,13 @@ build_deps() {
rm -rf "${DEPS_BUILD_DIR}"
- # If there is a valid cache and we're not forced to recompile,
- # use cached third-party dependencies.
- if test -f "${CACHE_MARKER}" && test "${BUILD_NVIM_DEPS}" != "true" ; then
+ # Use cached dependencies if $CACHE_MARKER exists.
+ if test -f "${CACHE_MARKER}" && ! test "${CACHE_ENABLE}" = "false" ; then
local statcmd="stat -c '%y'"
if test "${TRAVIS_OS_NAME}" = osx ; then
statcmd="stat -f '%Sm'"
fi
- echo "Using third-party dependencies from Travis's cache (last updated: $(${statcmd} "${CACHE_MARKER}"))."
+ echo "Using third-party dependencies from Travis cache (last update: $(${statcmd} "${CACHE_MARKER}"))."
mkdir -p "$(dirname "${DEPS_BUILD_DIR}")"
mv "${HOME}/.cache/nvim-deps" "${DEPS_BUILD_DIR}"