From 4b5722dff41da5fd23ebddccd3854220f623ac22 Mon Sep 17 00:00:00 2001 From: Richard Weickelt Date: Fri, 22 Nov 2019 07:12:12 +0100 Subject: Enable ccache on Linux/Docker This speeds up CI builds a lot. Change-Id: I53962e1683b4dd923c3a7d254db24164a4e623a6 Reviewed-by: Ivan Komissarov Reviewed-by: Christian Kandeler --- .travis.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to '.travis.yml') 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 -- cgit v1.2.3