summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-16 23:48:56 +0100
committerMax Kellermann <max@musicpd.org>2018-02-17 00:30:32 +0100
commit420582ec5e6a26eac6a1dccc5f3b3907b2002185 (patch)
treeef7192489064cfd2455f011d9024b6050e7600ca /.travis.yml
parent36207d972664ac5969dc984021d7ecc8f1132bc0 (diff)
.travis.yml: enable ccache
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 511f2f392..4dcb47736 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,10 @@ env:
global:
- MAKEFLAGS="-j2"
+cache:
+ - apt
+ - ccache
+
before_install:
- eval "${MATRIX_EVAL}"
# C++14
@@ -31,12 +35,16 @@ before_install:
install:
# C++14
- - test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit
+ - test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit ccache
+
+before_script:
+ - ccache -s
script:
- OPTIONS="--enable-test"
- test "$TRAVIS_OS_NAME" != "osx" || OPTIONS="$OPTIONS --enable-osx"
- ./autogen.sh
- - ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
+ - ./configure CC="ccache $CC" CXX="ccache $CXX" --disable-silent-rules --disable-dependency-tracking $OPTIONS
- make
- make check
+ - ccache -s