Enable ccache for Bitbucket Pipelines.
--HG-- branch : develop
This commit is contained in:
parent
e8804c90bb
commit
fa18e3b0d3
|
@ -7,6 +7,8 @@ pipelines:
|
||||||
branches:
|
branches:
|
||||||
develop:
|
develop:
|
||||||
- step:
|
- step:
|
||||||
|
caches:
|
||||||
|
ccache
|
||||||
script:
|
script:
|
||||||
- cat /etc/*-release
|
- cat /etc/*-release
|
||||||
- uname -a
|
- uname -a
|
||||||
|
@ -15,8 +17,11 @@ pipelines:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- qmake --version
|
- qmake --version
|
||||||
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
|
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/atlassian/bitbucketci/agent/build/build/src/libs/vpropertyexplorer/bin:/opt/atlassian/bitbucketci/agent/build/build/src/libs/qmuparser/bin"
|
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/atlassian/bitbucketci/agent/build/build/src/libs/vpropertyexplorer/bin:/opt/atlassian/bitbucketci/agent/build/build/src/libs/qmuparser/bin"
|
||||||
# QTestLib require GUI support for some tests
|
# QTestLib require GUI support for some tests
|
||||||
- xvfb-run -a make --silent check TESTARGS="-silent"
|
- xvfb-run -a make --silent check TESTARGS="-silent"
|
||||||
|
definitions:
|
||||||
|
caches:
|
||||||
|
ccache: $HOME/.ccache
|
||||||
|
|
1
dist/docker/Dockerfile
vendored
1
dist/docker/Dockerfile
vendored
|
@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
|
||||||
libqt5xml5 \
|
libqt5xml5 \
|
||||||
libqt5xmlpatterns5 \
|
libqt5xmlpatterns5 \
|
||||||
xpdf \
|
xpdf \
|
||||||
|
ccache \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Whatever you need more than what is on the base image required by your project
|
# Whatever you need more than what is on the base image required by your project
|
||||||
|
|
Loading…
Reference in New Issue
Block a user