From fa18e3b0d3c6f50d3c0311cdf28751ca32963e09 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 4 Jul 2019 15:14:55 +0300 Subject: [PATCH] Enable ccache for Bitbucket Pipelines. --HG-- branch : develop --- bitbucket-pipelines.yml | 7 ++++++- dist/docker/Dockerfile | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 0e2cba650..5778c39a3 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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 diff --git a/dist/docker/Dockerfile b/dist/docker/Dockerfile index c88cad0fb..16b9409f8 100644 --- a/dist/docker/Dockerfile +++ b/dist/docker/Dockerfile @@ -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