Add Zuul CI configuration

This allows us to have pull requests tested before we review changes
to merge.
This commit is contained in:
Neal Gompa 2023-12-20 07:55:40 -05:00
parent 724d3376e7
commit b5003bffbe
10 changed files with 94 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

26
.zuul.yaml Normal file
View File

@ -0,0 +1,26 @@
---
- job:
name: build-images-x86_64
parent: tmt-test
vars:
tmt_url: "https://pagure.io/{{ zuul.project.name }}"
tmt_ref: "{{ zuul.ref }}"
distro: fedora-rawhide
compose: Fedora-latest
tf_arch: x86_64
- job:
name: build-images-aarch64
parent: tmt-test
vars:
tmt_url: "https://pagure.io/{{ zuul.project.name }}"
tmt_ref: "{{ zuul.ref }}"
distro: fedora-rawhide
compose: Fedora-latest
tf_arch: aarch64
- project:
check:
jobs:
- build-images-x86_64
- build-images-aarch64

View File

@ -24,6 +24,11 @@ Set up your development environment and run the image build (substitute `<image_
[]$ sudo ./kiwi-build --image-type=<image_type> --image-profile=<image_profile> --output-dir ./outdir
```
## CI information
This project is tested using the Software Factory Zuul CI instance
using the [Test Management Tool](https://tmt.readthedocs.io/).
## Licensing
This is free software: you can redistribute it and/or modify

8
tmt/plans/build-aws.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Build AWS EC2 image
discover:
how: fmf
environment:
image_type: oem
image_profile: Cloud-AmazonEC2
execute:
how: tmt

View File

@ -0,0 +1,8 @@
summary: Build Azure image
discover:
how: fmf
environment:
image_type: oem
image_profile: Cloud-Azure
execute:
how: tmt

8
tmt/plans/build-gcp.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Build GCP image
discover:
how: fmf
environment:
image_type: oem
image_profile: Cloud-GCE
execute:
how: tmt

View File

@ -0,0 +1,8 @@
summary: Build OpenStack image
discover:
how: fmf
environment:
image_type: oem
image_profile: Cloud-OpenStack
execute:
how: tmt

View File

@ -0,0 +1,8 @@
summary: Build Vagrant image for libvirt
discover:
how: fmf
environment:
image_type: oem
image_profile: Vagrant-libvirt
execute:
how: tmt

View File

@ -0,0 +1,11 @@
summary: Build Vagrant image for VirtualBox
discover:
how: fmf
adjust:
enabled: false
when: arch != x86_64
environment:
image_type: oem
image_profile: Vagrant-VirtualBox
execute:
how: tmt

11
tmt/tests/build-image.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Build image
require:
- distribution-gpg-keys
- git-core
- kiwi
- libselinux-utils
framework: shell
path: /
test: |
./kiwi-build --debug --image-type="$image_type" --image-profile="$image_profile" --kiwi-description-dir="${TMT_TREE}" --output-dir="${TMT_TEST_DATA}"
duration: 60m