travis: move cache key for ccache into jobs

Move the `cache: directories: "$HOME/.ccache"` key from the top of the
file into each specific job, otherwise it does not seem to have an
effect as a global option.
This commit is contained in:
Rafael Kitover 2018-06-27 14:13:23 -07:00
parent 21b718b837
commit 48af3829aa
1 changed files with 12 additions and 4 deletions

View File

@ -1,10 +1,6 @@
--- ---
sudo: required sudo: required
cache:
directories:
- "$HOME/.ccache"
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
@ -20,6 +16,9 @@ matrix:
- cmake .. - cmake ..
- make -j2 - make -j2
# - ./visualboyadvance-m --help # - ./visualboyadvance-m --help
cache:
directories:
- "$HOME/.ccache"
- env: BUILD_ENV=mingw-w64 - env: BUILD_ENV=mingw-w64
language: cpp language: cpp
os: linux os: linux
@ -31,6 +30,9 @@ matrix:
- cd build - cd build
- /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake .. - /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake ..
- make -j2 - make -j2
cache:
directories:
- "$HOME/.ccache"
- env: BUILD_ENV=mingw-w32 - env: BUILD_ENV=mingw-w32
language: cpp language: cpp
os: linux os: linux
@ -42,6 +44,9 @@ matrix:
- cd build - cd build
- /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake .. - /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake ..
- make -j2 - make -j2
cache:
directories:
- "$HOME/.ccache"
- env: BUILD_ENV=mac - env: BUILD_ENV=mac
language: cpp language: cpp
os: osx os: osx
@ -53,3 +58,6 @@ matrix:
- cmake .. - cmake ..
- make -j2 - make -j2
# - ./visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m --help # - ./visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m --help
cache:
directories:
- "$HOME/.ccache"