Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit cceaaf30 authored by David Frank's avatar David Frank Committed by Tobias Lasser
Browse files

#58 Configure jobs to run before merging

- Static analysis, compile, build and running tests will always be performed
- Dynamic analysis (memory sanitizers and such) are run for merge requests and schedules
- Docs are only run for schedules
parent 2234549b
Pipeline #269927 passed with stages
in 57 minutes and 40 seconds
......@@ -19,18 +19,36 @@ variables:
### job templates ###
# run job only if it's connected to a schedule
.job_template: &nightly_job
only:
- schedules
.job_template: &build_job
stage: compile
cache:
key: "$CI_JOB_NAME"
paths:
- build/
# run job if conntect to a schedule, merge request or some other things
.job_template: &run_on_merge_requests
only:
- merge_requests
- schedules
- master
- web
- triggers
- api
# always run this job
.job_template: &run_always
only:
- merge_requests
- branches
- tags
- api
- pushes
- schedules
- triggers
- web
.job_template: &build_job_artifact
<<: *run_always
stage: compile
cache:
key: "$CI_JOB_NAME"
......@@ -57,6 +75,7 @@ variables:
- ninja
.job_template: &test_job_artifact
<<: *run_always
script:
- cd build
- cmake -GNinja -DELSA_CREATE_JUNIT_REPORTS=ON ..
......@@ -69,6 +88,7 @@ variables:
### static test ###
clang-format:
<<: *run_always
stage: static-test
image: $ANALYSIS_IMAGE
script:
......@@ -79,6 +99,7 @@ clang-format:
- clang
clang-tidy:
<<: *run_always
stage: static-test
image: $ANALYSIS_IMAGE
script:
......@@ -189,6 +210,7 @@ test-cuda:
- cuda
test-gpu-only:
<<: *run_always
stage: test
image: $GPU_ONLY_IMAGE
dependencies:
......@@ -214,6 +236,7 @@ test-gpu-only:
### sanitizers ###
cuda-memcheck:
<<: *run_on_merge_requests
stage: sanitizer
image: $GPU_ONLY_IMAGE
script:
......@@ -227,7 +250,7 @@ cuda-memcheck:
- cuda
asan-ubsan:
<<: *nightly_job
<<: *run_on_merge_requests
stage: sanitizer
image: $CUDA_IMAGE
script:
......@@ -246,7 +269,7 @@ asan-ubsan:
### test coverage ###
test-coverage:
<<: *nightly_job
<<: *run_on_merge_requests
stage: coverage
image: $CUDA_IMAGE
dependencies: []
......
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