aboutsummaryrefslogtreecommitdiff
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2023-12-20 07:55:40 -0500
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2023-12-20 07:55:40 -0500
commitb5003bffbed2c4c6753440bc07fea515b5327f83 (patch)
tree2cbb029cd97812da8dc49a445196b265b33e85c9
parent724d3376e77d4c999021d091bcd2a483129cf461 (diff)
downloadkiwi-descriptions-b5003bffbed2c4c6753440bc07fea515b5327f83.tar.gz
kiwi-descriptions-b5003bffbed2c4c6753440bc07fea515b5327f83.zip
Add Zuul CI configuration
This allows us to have pull requests tested before we review changes to merge.
-rw-r--r--.fmf/version1
-rw-r--r--.zuul.yaml26
-rw-r--r--README.md5
-rw-r--r--tmt/plans/build-aws.fmf8
-rw-r--r--tmt/plans/build-azure.fmf8
-rw-r--r--tmt/plans/build-gcp.fmf8
-rw-r--r--tmt/plans/build-openstack.fmf8
-rw-r--r--tmt/plans/build-vagrant-libvirt.fmf8
-rw-r--r--tmt/plans/build-vagrant-virtualbox.fmf11
-rw-r--r--tmt/tests/build-image.fmf11
10 files changed, 94 insertions, 0 deletions
diff --git a/.fmf/version b/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..1a0971b
--- /dev/null
+++ b/.zuul.yaml
@@ -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
diff --git a/README.md b/README.md
index 8b0a2bb..8f8b05f 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/tmt/plans/build-aws.fmf b/tmt/plans/build-aws.fmf
new file mode 100644
index 0000000..7f6a327
--- /dev/null
+++ b/tmt/plans/build-aws.fmf
@@ -0,0 +1,8 @@
+summary: Build AWS EC2 image
+discover:
+ how: fmf
+environment:
+ image_type: oem
+ image_profile: Cloud-AmazonEC2
+execute:
+ how: tmt
diff --git a/tmt/plans/build-azure.fmf b/tmt/plans/build-azure.fmf
new file mode 100644
index 0000000..6b43b63
--- /dev/null
+++ b/tmt/plans/build-azure.fmf
@@ -0,0 +1,8 @@
+summary: Build Azure image
+discover:
+ how: fmf
+environment:
+ image_type: oem
+ image_profile: Cloud-Azure
+execute:
+ how: tmt
diff --git a/tmt/plans/build-gcp.fmf b/tmt/plans/build-gcp.fmf
new file mode 100644
index 0000000..f5945da
--- /dev/null
+++ b/tmt/plans/build-gcp.fmf
@@ -0,0 +1,8 @@
+summary: Build GCP image
+discover:
+ how: fmf
+environment:
+ image_type: oem
+ image_profile: Cloud-GCE
+execute:
+ how: tmt
diff --git a/tmt/plans/build-openstack.fmf b/tmt/plans/build-openstack.fmf
new file mode 100644
index 0000000..3f0eb22
--- /dev/null
+++ b/tmt/plans/build-openstack.fmf
@@ -0,0 +1,8 @@
+summary: Build OpenStack image
+discover:
+ how: fmf
+environment:
+ image_type: oem
+ image_profile: Cloud-OpenStack
+execute:
+ how: tmt
diff --git a/tmt/plans/build-vagrant-libvirt.fmf b/tmt/plans/build-vagrant-libvirt.fmf
new file mode 100644
index 0000000..7240ed1
--- /dev/null
+++ b/tmt/plans/build-vagrant-libvirt.fmf
@@ -0,0 +1,8 @@
+summary: Build Vagrant image for libvirt
+discover:
+ how: fmf
+environment:
+ image_type: oem
+ image_profile: Vagrant-libvirt
+execute:
+ how: tmt
diff --git a/tmt/plans/build-vagrant-virtualbox.fmf b/tmt/plans/build-vagrant-virtualbox.fmf
new file mode 100644
index 0000000..d850aa8
--- /dev/null
+++ b/tmt/plans/build-vagrant-virtualbox.fmf
@@ -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
diff --git a/tmt/tests/build-image.fmf b/tmt/tests/build-image.fmf
new file mode 100644
index 0000000..4bbfac6
--- /dev/null
+++ b/tmt/tests/build-image.fmf
@@ -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