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)