From 48af3829aa9faf26c57e574be06b224b922a84c4 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Wed, 27 Jun 2018 14:13:23 -0700 Subject: [PATCH] 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. --- .travis.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index ecfb2d6d..447fa9ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,6 @@ --- sudo: required -cache: - directories: - - "$HOME/.ccache" - matrix: fast_finish: true include: @@ -20,6 +16,9 @@ matrix: - cmake .. - make -j2 # - ./visualboyadvance-m --help + cache: + directories: + - "$HOME/.ccache" - env: BUILD_ENV=mingw-w64 language: cpp os: linux @@ -31,6 +30,9 @@ matrix: - cd build - /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake .. - make -j2 + cache: + directories: + - "$HOME/.ccache" - env: BUILD_ENV=mingw-w32 language: cpp os: linux @@ -42,6 +44,9 @@ matrix: - cd build - /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake .. - make -j2 + cache: + directories: + - "$HOME/.ccache" - env: BUILD_ENV=mac language: cpp os: osx @@ -53,3 +58,6 @@ matrix: - cmake .. - make -j2 # - ./visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m --help + cache: + directories: + - "$HOME/.ccache"