From 6b6c6c71ca97fdd5c7436e47e15626f0dddabca8 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Tue, 20 Nov 2018 14:55:20 +0100 Subject: [PATCH] add ccache to docker compilation (#3446) * add ccache to docker image * test commit please ignore --- .ci/UbuntuBionic/Dockerfile | 1 + .travis.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/UbuntuBionic/Dockerfile b/.ci/UbuntuBionic/Dockerfile index 17b8e1cb..65ef1f6d 100644 --- a/.ci/UbuntuBionic/Dockerfile +++ b/.ci/UbuntuBionic/Dockerfile @@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ file \ g++ \ git \ + ccache \ cmake \ libprotobuf-dev \ libqt5multimedia5-plugins \ diff --git a/.travis.yml b/.travis.yml index 0f7b87bd..d1755773 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,13 +9,17 @@ matrix: if: tag IS NOT present services: docker before_install: docker build -t img .ci/UbuntuBionic - script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src" img + script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src" + --mount "type=bind,source=$HOME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache" + img bash .ci/travis-compile.sh --server --debug - name: Ubuntu Bionic (Release) if: (branch = master AND NOT type = pull_request) OR tag IS present services: docker before_install: docker build -t img .ci/UbuntuBionic - script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src" img + script: docker run --mount "type=bind,source=$(pwd),target=/src" -w="/src" + --mount "type=bind,source=$HOME/.ccache,target=/.ccache" -e "CCACHE_DIR=/.ccache" + img bash .ci/travis-compile.sh --server --package --release #Ubuntu Xenial (Debug only)