[isar-cip-core][PATCH v3 4/4] Enable CI image build and test support for Sid
Shivanand Kunijadar <[email protected]>
| Newsgroups | org.cip-project.lists.cip-dev |
|---|---|
| Message-ID | <[email protected]> |
Keep these jobs as scheduled and can be scheduled to run every week just to monitor and fix if there are any issues. Also set allow_failure:true for these jobs as sid is unstable. Signed-off-by: Shivanand Kunijadar <[email protected]> --- .gitlab-ci.yml | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 485c3c3..5a20ad6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,7 @@ default: - if [ "${release}" = "bullseye" ]; then base_yaml="${base_yaml}:kas/opt/bullseye.yml"; fi - if [ "${release}" = "bookworm" ]; then base_yaml="${base_yaml}:kas/opt/bookworm.yml"; fi - if [ "${release}" = "trixie" ]; then base_yaml="${base_yaml}:kas/opt/trixie.yml"; fi + - if [ "${release}" = "sid" ]; then base_yaml="${base_yaml}:kas/opt/sid.yml"; fi - if [ "${encrypt}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/encrypt-data.yml"; fi - if [ "${factory_reset}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/factory-reset.yml"; fi - if [ "${watchdog}" = "disable" ]; then base_yaml="${base_yaml}:kas/opt/disable-watchdog.yml"; fi @@ -347,6 +348,57 @@ build:qemu-amd64-secure-boot-buster: use_rt: disable encrypt: enable +# sid image builds +.build_base_sid: + extends: + - .build_base + rules: + - if: $CI_COMMIT_TAG + when: never + - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_RUN_UNSTABLE_SID' + - if: $CI_COMMIT_BRANCH != "master" + when: never + allow_failure: true + +build:qemu-amd64-base-sid: + extends: + - .build_base_sid + variables: + target: qemu-amd64 + use_rt: disable + release: sid + extension: security + security_test: enable + build_updates: enable + separate_home_partition: enable + deploy: enable + +build:qemu-arm64-base-sid: + extends: + - .build_base_sid + variables: + target: qemu-arm64 + use_rt: disable + release: sid + extension: security + security_test: enable + build_updates: enable + separate_home_partition: enable + deploy: enable + +build:qemu-arm-base-sid: + extends: + - .build_base_sid + variables: + target: qemu-arm + extension: security + security_test: enable + use_rt: disable + release: sid + build_updates: enable + separate_home_partition: enable + deploy: enable + .test-cip-core: stage: test image: $CI_REGISTRY_IMAGE/lavacli @@ -671,6 +723,44 @@ test:qemu-arm-swupdate-apply-same-image-swu: target: qemu-arm test_function: swupdate-apply-same-image-swu +# Tests for unstable(sid) images +.test-cip-core-sid: + extends: + - .test-cip-core + rules: + - if: $CI_COMMIT_TAG + when: never + - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_RUN_UNSTABLE_SID' + - if: $CI_COMMIT_BRANCH != "master" + when: never + allow_failure: true + +test:qemu-amd64-IEC-sid: + extends: + - .test-cip-core-sid + variables: + target: qemu-amd64 + test_function: IEC + iec_test_timeout: 40 + +test:qemu-arm64-IEC-sid: + extends: + - .test-cip-core-sid + needs: ["build:qemu-arm64-base-sid"] + variables: + target: qemu-arm64 + test_function: IEC + iec_test_timeout: 40 + +test:qemu-arm-IEC-sid: + extends: + - .test-cip-core-sid + needs: ["build:qemu-arm-base-sid"] + variables: + target: qemu-arm + test_function: IEC + iec_test_timeout: 40 + cve-checks: stage: cve-check needs: [] -- 2.39.5