From 93a27432e132a72ffe1c9b7c9c077e01b2778a1a Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 17 Nov 2016 09:31:44 +1100 Subject: travis: enable ccache Primarily this combats the long time it takes to build qemu in our build scripts. Practically, cuts a couple of minutes from build. Signed-off-by: Stewart Smith --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 87e4ec2..a986d07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: c +cache: ccache + env: matrix: - RUN_ON_CONTAINER=ubuntu-12.04 @@ -28,7 +30,7 @@ before_install: script: - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then docker build -t ${RUN_ON_CONTAINER} -f opal-ci/Dockerfile-${RUN_ON_CONTAINER} . && - docker run --rm -t $RUN_ON_CONTAINER; + docker run --volume $HOME/.ccache:/root/.ccache --rm -t $RUN_ON_CONTAINER; fi - if [ ${COVERITY_SCAN_BRANCH} == 1 ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && -- cgit v1.1