summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-10-22 11:24:06 +0100
committerEric Engestrom <eric.engestrom@intel.com>2019-11-23 00:24:04 +0000
commit89625a3844798919f616efd1a43a59d8342d3212 (patch)
tree126f3c5b351b1262da6dc7ab33b85cbcafad8e76 /.gitlab-ci.yml
parent4bf6e13884ec8abc3680911eeb339f38efc58355 (diff)
gitlab-ci: use ccache to speed up builds
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e29ab5c19..1e7bf0b13 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@
# repository's registry will be used there as well.
variables:
UPSTREAM_REPO: mesa/piglit
- DEBIAN_TAG: "2019-10-20"
+ DEBIAN_TAG: "2019-10-22"
DEBIAN_VERSION: buster-slim
DEBIAN_IMAGE: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
GIT_DEPTH: 100
@@ -58,10 +58,24 @@ debian:
# BUILD
+# Use ccache transparently, and print stats before/after
+.use-ccache:
+ variables:
+ CC: /usr/lib/ccache/gcc
+ CXX: /usr/lib/ccache/g++
+ CCACHE_COMPILERCHECK: content
+ CCACHE_DIR: /cache/piglit/ccache
+ before_script:
+ - export CCACHE_BASEDIR="$PWD"
+ - ccache --show-stats
+ after_script:
+ - ccache --show-stats
+
build:
stage: build
extends:
- .use-debian
+ - .use-ccache
script:
- cmake .
-D CMAKE_BUILD_TYPE=Debug