ci: test the generated artifacts in qemu runners
Part-of: https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/merge_requests/63
This commit is contained in:
committed by
Pablo Correa Gómez
parent
95edf678f4
commit
0edee0afbd
@@ -6,9 +6,18 @@ image: alpine:edge
|
|||||||
variables:
|
variables:
|
||||||
GOFLAGS: "-buildvcs=false"
|
GOFLAGS: "-buildvcs=false"
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/mkinitfs-vendor-${CI_COMMIT_TAG}/${CI_COMMIT_TAG}"
|
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/mkinitfs-vendor-${CI_COMMIT_TAG}/${CI_COMMIT_TAG}"
|
||||||
|
CI_TRON_TEMPLATE_PROJECT: &ci-tron-template-project postmarketOS/ci-common
|
||||||
|
CI_TRON_JOB_TEMPLATE_PROJECT_URL: $CI_SERVER_URL/$CI_TRON_TEMPLATE_PROJECT
|
||||||
|
CI_TRON_JOB_TEMPLATE_COMMIT: &ci-tron-template-commit 7c95b5f2d53533e8722abf57c73e558168e811f3
|
||||||
|
|
||||||
|
include:
|
||||||
|
- project: *ci-tron-template-project
|
||||||
|
ref: *ci-tron-template-commit
|
||||||
|
file: '/ci-tron/common.yml'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- hardware tests
|
||||||
- vendor
|
- vendor
|
||||||
- release
|
- release
|
||||||
|
|
||||||
@@ -27,10 +36,62 @@ build:
|
|||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
- make
|
- make
|
||||||
|
after_script:
|
||||||
|
- mkdir -p rootfs/usr/sbin
|
||||||
|
- cp mkinitfs rootfs/usr/sbin
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
reports:
|
reports:
|
||||||
junit: report.xml
|
junit: report.xml
|
||||||
|
paths:
|
||||||
|
- rootfs
|
||||||
|
|
||||||
|
.qemu-common:
|
||||||
|
variables:
|
||||||
|
DEVICE_NAME: qemu-$CPU_ARCH
|
||||||
|
KERNEL_VARIANT: lts
|
||||||
|
|
||||||
|
build-ci-tron-qemu:
|
||||||
|
stage: hardware tests
|
||||||
|
extends:
|
||||||
|
- .pmos-ci-tron-build-boot-artifacts
|
||||||
|
- .qemu-common
|
||||||
|
needs: ["build"]
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- CPU_ARCH:
|
||||||
|
- amd64
|
||||||
|
- aarch64
|
||||||
|
variables:
|
||||||
|
INSTALL_PACKAGES: device-${DEVICE_NAME} device-${DEVICE_NAME}-kernel-${KERNEL_VARIANT} postmarketos-mkinitfs-hook-ci
|
||||||
|
|
||||||
|
.test-ci-tron-qemu:
|
||||||
|
stage: hardware tests
|
||||||
|
extends:
|
||||||
|
- .pmos-ci-tron-initramfs-test
|
||||||
|
- .qemu-common
|
||||||
|
dependencies: []
|
||||||
|
needs:
|
||||||
|
- job: 'build-ci-tron-qemu'
|
||||||
|
artifacts: false
|
||||||
|
variables:
|
||||||
|
CI_TRON_KERNEL__URL: "glartifact://build-ci-tron-qemu: [$CPU_ARCH]/${CI_TRON__PMB_EXPORT_PATH}/vmlinuz-${KERNEL_VARIANT}"
|
||||||
|
CI_TRON_INITRAMFS__INITRAMFS__URL: "glartifact://build-ci-tron-qemu: [$CPU_ARCH]/${CI_TRON__PMB_EXPORT_PATH}/initramfs"
|
||||||
|
CI_TRON_KERNEL_CMDLINE__DEVICEINFO: 'console=tty1 console=ttyS0,115200 PMOS_FORCE_PARTITION_RESIZE'
|
||||||
|
|
||||||
|
test-ci-tron-qemu-amd64:
|
||||||
|
extends:
|
||||||
|
- .test-ci-tron-qemu
|
||||||
|
- .pmos-ci-tron-runner-qemu-amd64
|
||||||
|
variables:
|
||||||
|
CPU_ARCH: amd64
|
||||||
|
|
||||||
|
test-ci-tron-qemu-aarch64:
|
||||||
|
extends:
|
||||||
|
- .test-ci-tron-qemu
|
||||||
|
- .pmos-ci-tron-runner-qemu-aarch64
|
||||||
|
variables:
|
||||||
|
CPU_ARCH: aarch64
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
stage: vendor
|
stage: vendor
|
||||||
|
Reference in New Issue
Block a user