mirror of
https://github.com/neovim/neovim.git
synced 2025-11-04 09:44:31 +00:00
Travis: Enable before_cache script for MacOS. (#5007)
Travis now seems to support caching on MacOS.
This commit is contained in:
committed by
Justin M. Keyes
parent
a5358688bc
commit
bd6dad06dd
@@ -3,12 +3,6 @@
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
if [[ "${TRAVIS_OS_NAME}" != linux ]]; then
|
||||
# Caches are only enabled for Travis's Linux container infrastructure,
|
||||
# but this script is still executed on OS X.
|
||||
exit
|
||||
fi
|
||||
|
||||
# Don't cache pip's log and selfcheck.
|
||||
rm -rf "${HOME}/.cache/pip/log"
|
||||
rm -f "${HOME}/.cache/pip/selfcheck.json"
|
||||
@@ -16,7 +10,7 @@ rm -f "${HOME}/.cache/pip/selfcheck.json"
|
||||
# Update the third-party dependency cache only if the build was successful.
|
||||
if [[ -f "${SUCCESS_MARKER}" ]]; then
|
||||
rm -rf "${HOME}/.cache/nvim-deps"
|
||||
mv -T "${DEPS_BUILD_DIR}" "${HOME}/.cache/nvim-deps"
|
||||
mv "${DEPS_BUILD_DIR}" "${HOME}/.cache/nvim-deps"
|
||||
touch "${CACHE_MARKER}"
|
||||
echo "Updated third-party dependencies (timestamp: $(stat -c '%y' "${CACHE_MARKER}"))."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user