Skip to content

Commit fb493da

Browse files
Fixups for ccache configuration in travis
* Clear the cache stats before starting a build to get more accurate stats at the end of the build. * Ensure ccache is installed on OS X hosts
1 parent 94ffce3 commit fb493da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,24 @@ jobs:
177177
packages:
178178
- g++-5
179179
install:
180+
- ccache -z
181+
- ccache --max-size=1G
180182
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=g++-5'
181183
- cmake --build build -- -j4
182184
script: (cd build; ctest -V -L CORE)
183185

184186
- stage: Test different OS/CXX/Flags
185187
os: osx
186188
cache: ccache
189+
before_install:
190+
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
191+
- export PATH=/usr/local/opt/ccache/libexec:$PATH
187192
env:
188193
- BUILD_SYSTEM=cmake
189194
- CCACHE_CPP2=yes
190195
install:
196+
- ccache -z
197+
- ccache --max-size=1G
191198
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_OSX_ARCHITECTURES=x86_64'
192199
- cmake --build build -- -j4
193200
script: (cd build; ctest -V -L CORE)
@@ -235,6 +242,7 @@ jobs:
235242
- <<: *linter-stage
236243

237244
install:
245+
- ccache -z
238246
- ccache --max-size=1G
239247
- make -C src minisat2-download
240248
- make -C src/ansi-c library_check

0 commit comments

Comments
 (0)