diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 324def5d2fb98b86021bc7a1c5b099f10694f864..858c9c0d0a36e026136708bd62c6fa621d10781c 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