diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2018-08-08 09:38:24 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2018-08-08 09:38:25 -0400 |
commit | 1edf1295e8326ad315d24decea297d9f8ce22419 (patch) | |
tree | 61d44c2f737772d0aad66c11e6168d5d67f0bd57 /.travis.yml | |
parent | e382bac1a01a152d32a0f95df7a2ad6b84ae80d4 (diff) | |
download | efl-1edf1295e8326ad315d24decea297d9f8ce22419.tar.gz |
ci: automatically clear config.cache if it cannot be used
Summary:
if env vars change between runs then the cache is invalidated, causing
configure to print a very specific error
by running a separate script to catch this error, the build can detect
and clear the cache when necessary to avoid having to manually disable
the cache when changing build settings
Depends on D6697
Reviewers: stefan_schmidt, bu5hm4n
Reviewed By: bu5hm4n
Subscribers: bu5hm4n, cedric, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6732
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 4594f39011..1990eb7c2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,6 +84,11 @@ before_script: fi - .ci/ci-ccache-stats.sh + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + cp $HOME/cachedir/config.cache . || true + fi + script: - .ci/ci-configure.sh "$CI_BUILD_TYPE" |