aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-11-22 07:12:12 +0100
committerRichard Weickelt <richard@weickelt.de>2019-11-25 10:26:21 +0000
commit4b5722dff41da5fd23ebddccd3854220f623ac22 (patch)
tree5cdb37203c37e0b821f0111f53850c2a87bfabf6 /.travis.yml
parent866747db4d092281530296fc7be708786c26c49b (diff)
Enable ccache on Linux/Docker
This speeds up CI builds a lot. Change-Id: I53962e1683b4dd923c3a7d254db24164a4e623a6 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 14 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index ce56b8d46..cbe43f177 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,23 +24,31 @@ jobs:
stage: Build Qbs and and run autotests
name: With Qbs on Ubuntu bionic (linux_gcc64)
env:
- SERVICE=bionic
+ BUILD_OPTIONS=modules.cpp.compilerWrapper:ccache
services:
- docker
- before_install:
- - docker-compose pull ${SERVICE}
+ before_script:
+ - docker-compose pull bionic
+ - ccache -M 5G
+ - ccache -s
+ after_script:
+ - ccache -s
script:
- - docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qbs.sh
+ - docker-compose run bionic scripts/build-qbs-with-qbs.sh
- <<: *build-on-bionic
name: With QMake on Ubuntu bionic (linux_gcc64)
+ env:
+ BUILD_OPTIONS="CONFIG+=ccache"
script:
- - docker-compose run --rm ${SERVICE} scripts/build-qbs-with-qmake.sh
+ - docker-compose run bionic scripts/build-qbs-with-qmake.sh
- <<: *build-on-bionic
name: With Qbs on Ubuntu bionic (mingw32_w64)
+ env:
+ BUILD_OPTIONS="profile:qt-mingw32_w64 modules.cpp.compilerWrapper:ccache modules.cpp.treatWarningsAsErrors:true config:release"
script:
- - docker-compose run --rm ${SERVICE} qbs build profile:qt-mingw32_w64 modules.cpp.treatWarningsAsErrors:true
+ - docker-compose run bionic qbs build ${BUILD_OPTIONS}
- &build-on-macos
stage: Build Qbs and and run autotests