add ccache to docker compilation (#3446)

* add ccache to docker image

* test commit please ignore
This commit is contained in:
ebbit1q 2018-11-20 14:55:20 +01:00 committed by ctrlaltca
parent 57f15a9e98
commit 6b6c6c71ca
2 changed files with 7 additions and 2 deletions

View file

@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
file \
g++ \
git \
ccache \
cmake \
libprotobuf-dev \
libqt5multimedia5-plugins \

View file

@ -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)