From: Don Zickus <dzickus(a)redhat.com>
Add testing infrastructure
There is no easy way to test or debug scheduled job .gitlab-ci.yml
changes. Add infrastructure to allow pushes to a test-os-build area and
a scheduled job to play that branch.
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,6 +38,9 @@ workflow:
only-os-build-schedule: &only-os-build-schedule
if: $CI_COMMIT_BRANCH != "os-build" || $CI_PIPELINE_SOURCE !=
"schedule"
when: never
+ only-test-os-build-schedule: &only-test-os-build-schedule
+ if: $CI_COMMIT_BRANCH != "test-os-build" || $CI_PIPELINE_SOURCE !=
"schedule"
+ when: never
only-ark-latest-head: &only-ark-latest-head
if: $CI_COMMIT_BRANCH != "ark-latest" || $CI_PIPELINE_SOURCE !~ /push|web/
when: never
@@ -271,6 +274,19 @@ rawhide_release:
- *only-os-build-schedule
- if: $RAWHIDE_RELEASE == "true"
+test_scheduled_job:
+ extends: .scheduled_setup
+ script:
+ - git checkout --track origin/ark-latest && git describe
+ - git checkout --track origin/ark-infra && git describe
+ # make sure we are on correct code base before running script
+ - git checkout test-os-build && git describe
+ - sh -x redhat/scripts/ci/ark-create-release.sh
+ retry: 2
+ rules:
+ - *only-test-os-build-schedule
+ - if: $RAWHIDE_RELEASE == "testing"
+
test_makefile:
image: quay.io/fedora/fedora:rawhide
variables:
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2709