add homebrew cache to cache (#3776)
* add homebrew cache to cache * use same image * ruuun travis, ruunn * remove extra space * do these dashes do this? * trigger ci * these dashes confuse me, consistency is like woosh
This commit is contained in:
parent
f4adf79ad9
commit
5139039402
1 changed files with 19 additions and 7 deletions
26
.travis.yml
26
.travis.yml
|
@ -36,7 +36,7 @@ matrix:
|
||||||
env: NAME=UbuntuBionic
|
env: NAME=UbuntuBionic
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/$NAME/
|
- $HOME/$NAME/
|
||||||
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
||||||
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
||||||
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
||||||
|
@ -49,7 +49,7 @@ matrix:
|
||||||
env: NAME=UbuntuBionic
|
env: NAME=UbuntuBionic
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/$NAME/
|
- $HOME/$NAME/
|
||||||
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
||||||
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
||||||
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
||||||
|
@ -63,7 +63,7 @@ matrix:
|
||||||
env: NAME=Fedora29
|
env: NAME=Fedora29
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/$NAME/
|
- $HOME/$NAME/
|
||||||
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
||||||
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
||||||
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
||||||
|
@ -76,7 +76,7 @@ matrix:
|
||||||
env: NAME=Fedora29
|
env: NAME=Fedora29
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/$NAME/
|
- $HOME/$NAME/
|
||||||
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
before_install: docker build -t "cockatrice_${NAME,,}" .ci/$NAME && mkdir -p $HOME/$NAME/.ccache
|
||||||
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src"
|
||||||
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
--mount "type=bind,source=$HOME/$NAME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache"
|
||||||
|
@ -87,8 +87,11 @@ matrix:
|
||||||
- name: macOS (Debug)
|
- name: macOS (Debug)
|
||||||
if: tag IS NOT present
|
if: tag IS NOT present
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode10.1
|
osx_image: xcode9.2
|
||||||
cache: ccache
|
cache:
|
||||||
|
- ccache
|
||||||
|
- directories:
|
||||||
|
- $HOME/Library/Caches/Homebrew
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
@ -98,12 +101,18 @@ matrix:
|
||||||
- xz
|
- xz
|
||||||
update: true
|
update: true
|
||||||
script: bash ./.ci/travis-compile.sh --server --install --debug
|
script: bash ./.ci/travis-compile.sh --server --install --debug
|
||||||
|
before_cache:
|
||||||
|
- brew cleanup
|
||||||
|
|
||||||
|
|
||||||
- name: macOS (Release)
|
- name: macOS (Release)
|
||||||
if: (branch = master AND NOT type = pull_request) OR tag IS present
|
if: (branch = master AND NOT type = pull_request) OR tag IS present
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode9.2
|
osx_image: xcode9.2
|
||||||
cache: ccache
|
cache:
|
||||||
|
- ccache
|
||||||
|
- directories:
|
||||||
|
- $HOME/Library/Caches/Homebrew
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
@ -113,6 +122,9 @@ matrix:
|
||||||
- xz
|
- xz
|
||||||
update: true
|
update: true
|
||||||
script: bash ./.ci/travis-compile.sh --server --package "$TRAVIS_OS_NAME" --release
|
script: bash ./.ci/travis-compile.sh --server --package "$TRAVIS_OS_NAME" --release
|
||||||
|
before_cache:
|
||||||
|
- brew cleanup
|
||||||
|
|
||||||
|
|
||||||
# Builds for pull requests skip the deployment step altogether
|
# Builds for pull requests skip the deployment step altogether
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Loading…
Reference in a new issue