From 2f78b460230ad9891f2b307d2431ec281bbfc4ca Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 16 Dec 2016 11:55:59 +0200 Subject: [PATCH] Use Travis CI new feature caching to speed up building on Linux. --HG-- branch : develop --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b29f26552..9ac7a4e71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ matrix: sudo: required compiler: clang env: DEPLOY=false + cache: ccache - os: osx compiler: clang env: DEPLOY=true @@ -48,7 +49,12 @@ before_script: - cd build - pwd - qmake --version -- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings +- | + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings; + else + qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings CONFIG+=noTests; + fi script: - $CXX --version - |