mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Force wipe the travis caches with "travis_clean_cache"
This commit is contained in:
committed by
Nik Bougalis
parent
6f7d413d88
commit
42a068ab5e
@@ -362,7 +362,7 @@ matrix:
|
|||||||
# - travis_wait ${MAX_TIME_MIN} bin/sh/install-vcpkg.sh rocksdb[snappy,lz4,zlib]
|
# - travis_wait ${MAX_TIME_MIN} bin/sh/install-vcpkg.sh rocksdb[snappy,lz4,zlib]
|
||||||
- <<: *windows
|
- <<: *windows
|
||||||
stage: windep-boost
|
stage: windep-boost
|
||||||
name: prereq-boost
|
name: prereq-keep-boost
|
||||||
install:
|
install:
|
||||||
- choco upgrade cmake.install
|
- choco upgrade cmake.install
|
||||||
- choco install ninja visualstudio2017-workload-vctools -y
|
- choco install ninja visualstudio2017-workload-vctools -y
|
||||||
|
|||||||
@@ -2,6 +2,21 @@
|
|||||||
# some cached files create churn, so save them here for
|
# some cached files create churn, so save them here for
|
||||||
# later restoration before packing the cache
|
# later restoration before packing the cache
|
||||||
set -eux
|
set -eux
|
||||||
|
clean_cache="travis_clean_cache"
|
||||||
|
if [[ ! ( "${TRAVIS_JOB_NAME}" =~ "windows" || \
|
||||||
|
"${TRAVIS_JOB_NAME}" =~ "prereq-keep" ) ]] && \
|
||||||
|
( [[ "${TRAVIS_COMMIT_MESSAGE}" =~ "${clean_cache}" ]] || \
|
||||||
|
( [[ -v TRAVIS_PULL_REQUEST_SHA && \
|
||||||
|
"${TRAVIS_PULL_REQUEST_SHA}" != "" ]] && \
|
||||||
|
git log -1 "${TRAVIS_PULL_REQUEST_SHA}" | grep -cq "${clean_cache}" -
|
||||||
|
)
|
||||||
|
)
|
||||||
|
then
|
||||||
|
find ${TRAVIS_HOME}/_cache -maxdepth 2 -type d
|
||||||
|
rm -rf ${TRAVIS_HOME}/_cache
|
||||||
|
mkdir -p ${TRAVIS_HOME}/_cache
|
||||||
|
fi
|
||||||
|
|
||||||
pushd ${TRAVIS_HOME}
|
pushd ${TRAVIS_HOME}
|
||||||
if [ -f cache_ignore.tar ] ; then
|
if [ -f cache_ignore.tar ] ; then
|
||||||
rm -f cache_ignore.tar
|
rm -f cache_ignore.tar
|
||||||
|
|||||||
Reference in New Issue
Block a user