From 43f586ab23d1e2168ae89ff8c868c3255ae52494 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 25 Oct 2015 19:48:53 -0400 Subject: [PATCH] travis-ci enable ccache for linux --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4eba662e1..c05108ada 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,8 +54,9 @@ addons: - libudev-dev cache: - - apt - - ccache + directories: + - $HOME/.ccache + before_install: - cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow && git fetch --tags @@ -93,6 +94,13 @@ install: before_script: +# setup ccache + - mkdir -p ~/bin + - ln -s /usr/bin/ccache ~/bin/g++ + - ln -s /usr/bin/ccache ~/bin/g++-4.8 + - ln -s /usr/bin/ccache ~/bin/gcc + - ln -s /usr/bin/ccache ~/bin/gcc-4.8 + - export PATH=~/bin:$PATH - if [[ "${TRAVIS_OS_NAME}" = "android" && "${CONFIG}" = "installer" && -z ${ANDROID_STOREPASS} ]]; then export CONFIG=release; fi - qmake -r qgroundcontrol.pro CONFIG+=${CONFIG} CONFIG+=WarningsAsErrorsOn -spec ${SPEC} -- 2.22.0