add ccache to docker compilation (#3446)
* add ccache to docker image * test commit please ignore
This commit is contained in:
parent
57f15a9e98
commit
6b6c6c71ca
2 changed files with 7 additions and 2 deletions
|
@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
file \
|
file \
|
||||||
g++ \
|
g++ \
|
||||||
git \
|
git \
|
||||||
|
ccache \
|
||||||
cmake \
|
cmake \
|
||||||
libprotobuf-dev \
|
libprotobuf-dev \
|
||||||
libqt5multimedia5-plugins \
|
libqt5multimedia5-plugins \
|
||||||
|
|
|
@ -9,13 +9,17 @@ matrix:
|
||||||
if: tag IS NOT present
|
if: tag IS NOT present
|
||||||
services: docker
|
services: docker
|
||||||
before_install: docker build -t img .ci/UbuntuBionic
|
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
|
bash .ci/travis-compile.sh --server --debug
|
||||||
- name: Ubuntu Bionic (Release)
|
- name: Ubuntu Bionic (Release)
|
||||||
if: (branch = master AND NOT type = pull_request) OR tag IS present
|
if: (branch = master AND NOT type = pull_request) OR tag IS present
|
||||||
services: docker
|
services: docker
|
||||||
before_install: docker build -t img .ci/UbuntuBionic
|
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
|
bash .ci/travis-compile.sh --server --package --release
|
||||||
|
|
||||||
#Ubuntu Xenial (Debug only)
|
#Ubuntu Xenial (Debug only)
|
||||||
|
|
Loading…
Reference in a new issue