diff --git a/.travis.yml b/.travis.yml index 4eba662e1c2516cba4bd7fbe3350d118e6146232..c05108adae188bd83b86ee0f6bf444169f022235 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}