From 2c62b5067a5a1cf092c60a496b0c93f32e8c3e8b Mon Sep 17 00:00:00 2001 From: Aaron Viets <aaron.viets@ligo.org> Date: Fri, 23 Aug 2024 10:02:44 -0500 Subject: [PATCH] try to get MR CI working, take 3 --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 879efbcec..352d81cde 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,6 +52,8 @@ dist: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always artifacts: paths: - gstlal-calibration-*.tar.* @@ -70,6 +72,8 @@ srpm: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always # Build rpms build: @@ -86,6 +90,8 @@ build: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always # Lint rpms rpmlint: @@ -103,6 +109,11 @@ rpmlint: script: # lint the built rpms _and_ the installed ones (for extra checks) - rpmlint *.rpm "*gstlal-calibration*" + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always allow_failure: true # Tests @@ -198,6 +209,11 @@ docker:rl8: - pushes except: - /gstlal-([a-z]+-|)[0-9]+\.[0-9]+\.[0-9]+-v[0-9]+/ + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always docker-release:rl8: interruptible: true @@ -250,3 +266,8 @@ flake8: # these are presented in the code-quality box in the # merge_request UI FLAKE8_OPTIONS: "--exit-zero" + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + when: always + - if: $CI_PIPELINE_SOURCE == "push" + when: always -- GitLab