diff options
author | Richard Weickelt <richard@weickelt.de> | 2019-11-24 12:37:12 +0100 |
---|---|---|
committer | Richard Weickelt <richard@weickelt.de> | 2019-11-26 12:02:58 +0000 |
commit | e6bd7b1f2242e0b34aedccda790de7ea73794784 (patch) | |
tree | 50036f73bde662053bed64c7efb64ba1f9c0cd61 /.travis.yml | |
parent | 2e417555d0c993811f6db4e3f93cd2a3b9f250aa (diff) | |
download | qbs-e6bd7b1f2242e0b34aedccda790de7ea73794784.tar.gz |
Enable clcache on Windows
Works like ccache on Linux/macOS, but ccache-alike invocation requires an
unreleased version.
Change-Id: Ib206eef9d34514aa4a087cf38883241d58ee3992
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index cbe43f177..c0a64367a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -91,19 +91,24 @@ jobs: os: windows env: # Need to build in release mode. Otherwise autotests would be too slow. - BUILD_OPTIONS="config:release" + BUILD_OPTIONS="config:release modules.cpp.compilerWrapper:clcache" QT_INSTALL_DIR=C:/Qt QMAKE_PATH=${QT_INSTALL_DIR}/${QT_VERSION}/msvc2017_64/bin/qmake.exe - PATH="/c/Qt/Tools/QtCreator/bin:${PATH}" + PATH="/c/Qt/Tools/QtCreator/bin:/c/Python36:/c/Python36/Scripts:${PATH}" WITH_DOCS=0 QBS_BUILD_PROFILE=qt + CLCACHE_DIR="${HOME}/.ccache" before_install: # Install Qbs and Qt - ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QT_VERSION} --toolchain win64_msvc2017_64 qtbase qtdeclarative qttools qtscript - ./scripts/install-qt.sh -d ${QT_INSTALL_DIR} --version ${QTCREATOR_VERSION} qtcreator + - choco install python --version 3.6.8 + - pip install git+https://github.com/frerich/clcache.git@cae73d8255d78db8ba11e23c51fd2c9a89e7475b script: + - clcache -s - qbs setup-toolchains --detect - qbs setup-qt ${QMAKE_PATH} qt - qbs config qt.baseProfile MSVC2017-x86 - qbs config defaultProfile qt - scripts/build-qbs-with-qbs.sh + - clcache -s |