Commit db121559 authored by Lukas Riedel's avatar Lukas Riedel

Add per-brach per-job caches to build jobs

parent 8296d83e
...@@ -24,6 +24,10 @@ build:main: ...@@ -24,6 +24,10 @@ build:main:
$DUNECONTROL --only=dorie all $DUNECONTROL --only=dorie all
- MAKE_FLAGS="$MAKE_FLAGS" - MAKE_FLAGS="$MAKE_FLAGS"
$DUNECONTROL --only=dorie make build_tests $DUNECONTROL --only=dorie make build_tests
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/build-cmake
artifacts: artifacts:
name: "$CI_JOB_NAME" name: "$CI_JOB_NAME"
paths: paths:
...@@ -36,12 +40,15 @@ build:update_dune: ...@@ -36,12 +40,15 @@ build:update_dune:
- master - master
script: script:
- $DUNECONTROL update - $DUNECONTROL update
- $DUNECONTROL exec "rm -rf build-cmake"
- CMAKE_FLAGS="$CMAKE_FLAGS" - CMAKE_FLAGS="$CMAKE_FLAGS"
MAKE_FLAGS="$MAKE_FLAGS" MAKE_FLAGS="$MAKE_FLAGS"
$DUNECONTROL --module=dorie all $DUNECONTROL --module=dorie all
- MAKE_FLAGS="$MAKE_FLAGS" - MAKE_FLAGS="$MAKE_FLAGS"
$DUNECONTROL --only=dorie make build_tests $DUNECONTROL --only=dorie make build_tests
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/build-cmake
artifacts: artifacts:
name: "$CI_JOB_NAME" name: "$CI_JOB_NAME"
paths: paths:
...@@ -60,6 +67,10 @@ build:debug: ...@@ -60,6 +67,10 @@ build:debug:
$DUNECONTROL --only=dorie all $DUNECONTROL --only=dorie all
- MAKE_FLAGS="$MAKE_FLAGS" - MAKE_FLAGS="$MAKE_FLAGS"
$DUNECONTROL --only=dorie make build_tests $DUNECONTROL --only=dorie make build_tests
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/build-cmake
test:exec_cmds: test:exec_cmds:
stage: test stage: test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment