summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-12 10:05:09 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-07-26 08:55:58 +0200
commita4afe4b3009b57553455bc8b65205ad5397a185f (patch)
tree486ed15477c40526543dba64ccb3147132370e65
parent322fe2895190b355dd501d54949461af014548fa (diff)
ci: add osx homebrew packages to cache
this adds the downloaded homebrew package files to a cache in order to avoid needing to separately download each file at the start of each build not sure we can do better here unless we buy the enterprise-level travis package which allows building with custom osx images which we could pre-install all these dependencies on ref T7096 Differential Revision: https://phab.enlightenment.org/D6610
-rw-r--r--.travis.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 78d5fa4ba5..0840209adb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -66,7 +66,13 @@ matrix:
66 env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready 66 env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
67 67
68before_install: 68before_install:
69 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi 69 - |
70 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
71 rm -rf $HOME/Library/Caches/Homebrew
72 rm -rf $HOME/cachedir/Homebrew/Homebrew
73 mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew
74 .ci/ci-osx-deps.sh
75 fi
70 76
71before_script: 77before_script:
72 - | 78 - |
@@ -116,6 +122,7 @@ before_cache:
116 sudo chown travis:travis $HOME/autom4te.cache 122 sudo chown travis:travis $HOME/autom4te.cache
117 else 123 else
118 cp config.cache $HOME/cachedir 124 cp config.cache $HOME/cachedir
125 mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew
119 fi 126 fi
120 127
121after_success: 128after_success: