Enable ccache for Bitbucket Pipelines.

--HG--
branch : develop
merge-requests/1/merge
Roman Telezhynskyi 2019-07-04 15:14:55 +03:00
parent e8804c90bb
commit fa18e3b0d3
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,8 @@ pipelines:
branches:
develop:
- step:
caches:
ccache
script:
- cat /etc/*-release
- uname -a
@ -15,8 +17,11 @@ pipelines:
- mkdir build
- cd build
- qmake --version
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings
- 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"
# QTestLib require GUI support for some tests
- xvfb-run -a make --silent check TESTARGS="-silent"
definitions:
caches:
ccache: $HOME/.ccache

View File

@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
libqt5xml5 \
libqt5xmlpatterns5 \
xpdf \
ccache \
&& rm -rf /var/lib/apt/lists/*
# Whatever you need more than what is on the base image required by your project