Add Zuul CI configuration
This allows us to have pull requests tested before we review changes to merge.
This commit is contained in:
parent
724d3376e7
commit
b5003bffbe
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
26
.zuul.yaml
Normal file
26
.zuul.yaml
Normal 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
|
@ -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
8
tmt/plans/build-aws.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Build AWS EC2 image
|
||||
discover:
|
||||
how: fmf
|
||||
environment:
|
||||
image_type: oem
|
||||
image_profile: Cloud-AmazonEC2
|
||||
execute:
|
||||
how: tmt
|
8
tmt/plans/build-azure.fmf
Normal file
8
tmt/plans/build-azure.fmf
Normal 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
8
tmt/plans/build-gcp.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Build GCP image
|
||||
discover:
|
||||
how: fmf
|
||||
environment:
|
||||
image_type: oem
|
||||
image_profile: Cloud-GCE
|
||||
execute:
|
||||
how: tmt
|
8
tmt/plans/build-openstack.fmf
Normal file
8
tmt/plans/build-openstack.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Build OpenStack image
|
||||
discover:
|
||||
how: fmf
|
||||
environment:
|
||||
image_type: oem
|
||||
image_profile: Cloud-OpenStack
|
||||
execute:
|
||||
how: tmt
|
8
tmt/plans/build-vagrant-libvirt.fmf
Normal file
8
tmt/plans/build-vagrant-libvirt.fmf
Normal 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
|
11
tmt/plans/build-vagrant-virtualbox.fmf
Normal file
11
tmt/plans/build-vagrant-virtualbox.fmf
Normal 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
11
tmt/tests/build-image.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user