Skip to content
Snippets Groups Projects
Commit 1cfe0389 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

gitlab-ci: Submit tests to LAVA


Submit every modification to LAVA as part of the pipeline to set up a
direct feedback loop on non-main branches.

The image recipes pipeline can then re-use the job template here.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent e757687b
No related branches found
No related tags found
1 merge request!157gitlab-ci: Submit tests to LAVA
Pipeline #134969 failed
image: registry.gitlab.apertis.org/infrastructure/apertis-docker-images/v2021dev2-testcases-builder
include:
- /.gitlab-ci/templates-submit-tests.yml
test-renderer:
stage: test
script:
......@@ -30,3 +33,129 @@ pages:
- public
only:
- apertis/v2021dev2
.minimal:
variables:
type: minimal
.target:
variables:
type: target
.basesdk:
variables:
type: basesdk
.sdk:
variables:
type: sdk
.amd64-uefi:
variables:
architecture: amd64
board: uefi
.amd64-sdk:
variables:
architecture: amd64
board: sdk
.armhf-uboot:
variables:
architecture: armhf
board: uboot
.arm64-uboot:
variables:
architecture: arm64
board: uboot
.submit-tests-apt:
extends: .submit-tests
stage: deploy
variables:
profile_name: ${osname}-${type}-${architecture}-${board}
image_prefix: ${osname}_${release}-${type}-${architecture}-${board}
osname: apertis
release: v2021dev2
IMAGE_URL_PREFIX: https://images.apertis.org
imgpath: weekly/v2021dev2
PIPELINE_VERSION: "20200506.0117" # run tests against a known weekly build
.submit-tests-ostree:
extends: .submit-tests
stage: deploy
variables:
profile_name: ${osname}_ostree-${type}-${architecture}-${board}
image_prefix: ${osname}_ostree_${release}-${type}-${architecture}-${board}
osname: apertis
release: v2021dev2
IMAGE_URL_PREFIX: https://images.apertis.org
imgpath: weekly/v2021dev2
PIPELINE_VERSION: "20200506.0117" # run tests against a known weekly build
submit-tests-apt-amd64-minimal-uefi:
extends:
- .submit-tests-apt
- .amd64-uefi
- .minimal
submit-tests-apt-armhf-minimal-uboot:
extends:
- .submit-tests-apt
- .armhf-uboot
- .minimal
submit-tests-apt-arm64-minimal-uboot:
extends:
- .submit-tests-apt
- .arm64-uboot
- .minimal
submit-tests-apt-amd64-target-uefi:
extends:
- .submit-tests-apt
- .amd64-uefi
- .target
submit-tests-apt-armhf-target-uboot:
extends:
- .submit-tests-apt
- .armhf-uboot
- .target
submit-tests-apt-amd64-basesdk-sdk:
extends:
- .submit-tests-apt
- .amd64-sdk
- .basesdk
submit-tests-apt-amd64-sdk-sdk:
extends:
- .submit-tests-apt
- .amd64-sdk
- .sdk
submit-tests-ostree-amd64-minimal-uefi:
extends:
- .submit-tests-ostree
- .amd64-uefi
- .minimal
submit-tests-ostree-armhf-minimal-uboot:
extends:
- .submit-tests-ostree
- .armhf-uboot
- .minimal
submit-tests-ostree-arm64-minimal-uboot:
extends:
- .submit-tests-ostree
- .arm64-uboot
- .minimal
submit-tests-ostree-amd64-target-uefi:
extends:
- .submit-tests-ostree
- .amd64-uefi
- .target
######
# stage: submit tests
.submit-tests:
image: registry.gitlab.apertis.org/infrastructure/apertis-docker-images/v2021dev2-image-builder
variables:
test_repo_branch: $osname/$release
imgpath: $osname/$release
script:
- image_name="${image_prefix}_${PIPELINE_VERSION}"
- lava-submit
-c ${LQA_CONFIG}
-g lava/profiles.yaml
--profile "${profile_name}"
-t "release:${release}"
-t "release_version:${release}"
-t "baseurl:${IMAGE_URL_PREFIX}"
-t "image_date:${PIPELINE_VERSION}"
-t "image_name:${image_name}"
-t "imgpath:${imgpath}"
--callback-secret "${QA_REPORT_TOKEN}"
--callback-url https://lavaphabbridge.apertis.org/
rules:
- if: '$CI_MERGE_REQUEST_ID'
when: never
- if: '$LQA_CONFIG == null'
when: never
- when: on_success
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment