From 0914f9a325631ef50eb7fcab66bec76b80bede86 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Tue, 30 Apr 2019 01:33:17 +0200 Subject: [PATCH] Use different cache for each image --- .gitlab-ci.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 324def5d2..858c9c0d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,3 @@ -cache: - key: "$CI_COMMIT_REF_SLUG" - paths: - - build/ - untracked: true - stages: - build - test @@ -17,6 +11,12 @@ build:gcc8-seq-coverage: - cd build - CXX=g++-8 CC=gcc-8 cmake .. -DCMAKE_BUILD_TYPE=Coverage - make pugs + cache: + key: "${CI_COMMIT_REF_SLUG}-gcc8" + paths: + - build/ + untracked: true + test:gcc8-seq-coverage: image: localhost:5000/ubuntu_gcc8 @@ -27,6 +27,11 @@ test:gcc8-seq-coverage: - cd build - make run_unit_tests - make coverage + cache: + key: "${CI_COMMIT_REF_SLUG}-gcc8" + paths: + - build/ + untracked: true build:clang8-seq-coverage: image: localhost:5000/ubuntu_clang8 @@ -36,6 +41,11 @@ build:clang8-seq-coverage: - cd build - CXX=clang++-8 CC=clang-8 cmake .. -DCMAKE_BUILD_TYPE=Coverage -DCLANG_FORMAT=/usr/bin/clang-format-8 - make pugs + cache: + key: "${CI_COMMIT_REF_SLUG}-clang8" + paths: + - build/ + untracked: true test:clang8-seq-coverage: image: localhost:5000/ubuntu_clang8 @@ -46,3 +56,8 @@ test:clang8-seq-coverage: - cd build - make run_unit_tests - make coverage + cache: + key: "${CI_COMMIT_REF_SLUG}-clang8" + paths: + - build/ + untracked: true -- GitLab