diff options
| author | Daniel Hahler <git@thequod.de> | 2019-07-30 23:21:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 23:21:12 +0200 |
| commit | 208f56d3b928c473122ce47c8c7a17e0729a26ea (patch) | |
| tree | dbcd6b5b0e0c6180744b3c70b1132e0da7969e65 /ci/common | |
| parent | 6e01ed6a4c859ff915b42422622f1ba3cc80efd5 (diff) | |
| download | rneovim-208f56d3b928c473122ce47c8c7a17e0729a26ea.tar.gz rneovim-208f56d3b928c473122ce47c8c7a17e0729a26ea.tar.bz2 rneovim-208f56d3b928c473122ce47c8c7a17e0729a26ea.zip | |
ci: Travis: improve/revisit caching (#10358)
- use CACHE_NVIM_DEPS_DIR
- do not cache pip
This is handled through http caches in general/better, and it is not
used much anyway.
- do not cache DEPS_DOWNLOAD_DIR
Built deps are cached, downloads are not needed then.
- display ccache stats before clearing
- do not cache ccache stats
- improve output of `du` (do not list pages of output for "/home/travis/.cache/go-build")
Diffstat (limited to 'ci/common')
| -rw-r--r-- | ci/common/build.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh index 85b141de86..bdbe012ca6 100644 --- a/ci/common/build.sh +++ b/ci/common/build.sh @@ -27,15 +27,13 @@ build_deps() { fi mkdir -p "${DEPS_BUILD_DIR}" - mkdir -p "${DEPS_DOWNLOAD_DIR}" # Use cached dependencies if $CACHE_MARKER exists. 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 -a "${HOME}/.cache/nvim-deps"/. "${DEPS_BUILD_DIR}" - cp -a "${HOME}/.cache/nvim-deps-downloads"/. "${DEPS_DOWNLOAD_DIR}" + cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}" fi # Even if we're using cached dependencies, run CMake and make to |