]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run gcc:tarball CI job for merge requests
authorMichal Nowak <mnowak@isc.org>
Thu, 20 May 2021 16:00:28 +0000 (18:00 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 24 May 2021 18:04:44 +0000 (20:04 +0200)
Running gcc:tarball CI job for merge requests is consistent with how we
run gcc:out-of-tree CI job and should help identify problems with the
build system during the review process, not once merged during daily
runs. For the sake of time, unit and system tests associated with the
gcc:tarball CI job are excluded from merge requests.

Also, make sure that the tarball-create CI job includes the
default_triggering_rules anchor (as it is on the main branch), otherwise
adding the gcc:tarball CI job to merge request-triggered pipeline fails
with:

    Found errors in your .gitlab-ci.yml: 'gcc:tarball' job needs 'tarball-create' job but it was not added to the pipeline

(cherry picked from commit 83617cea9a7ac4b877b0874d041d21d80eb36fac)

.gitlab-ci.yml

index ae6c98ec6e3e8aac1453b6a367553db846c55a87..4657948aab13bdc53012494b0c4de17f68f9ead0 100644 (file)
@@ -516,7 +516,7 @@ pylint:
 tarball-create:
   stage: precheck
   <<: *base_image
-  <<: *schedules_tags_web_triggering_rules
+  <<: *default_triggering_rules
   script:
     - source version
     - export BIND_DIRECTORY="bind-${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
@@ -814,7 +814,6 @@ gcc:tarball:
     RUN_MAKE_INSTALL: 1
   <<: *base_image
   <<: *build_job
-  <<: *schedules_tags_web_triggering_rules
   before_script:
     - tar --extract --file bind-*.tar.${TARBALL_EXTENSION}
     - rm -f bind-*.tar.${TARBALL_EXTENSION}