tmt: Use declarative syntax for package dependencies

This makes things just a bit cleaner.
This commit is contained in:
Neal Gompa 2023-12-19 16:56:19 -05:00
parent 9bd4af2286
commit 94956e7750
4 changed files with 56 additions and 4 deletions

View file

@ -1,10 +1,23 @@
summary: Build GNOME image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover:
how: shell
tests:
- name: build image
test: |
dnf --assumeyes install fatcat git-core kiwi distribution-gpg-keys p7zip-plugins python3-boto3 zip zstd libselinux-utils rpmdistro-repoquery
setenforce 0
$TMT_TREE/builder.py build gnome
$TMT_TREE/builder.py package gnome

View file

@ -1,10 +1,23 @@
summary: Build KDE image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover:
how: shell
tests:
- name: build image
test: |
dnf --assumeyes install fatcat git-core kiwi distribution-gpg-keys p7zip-plugins python3-boto3 zip zstd libselinux-utils rpmdistro-repoquery
setenforce 0
$TMT_TREE/builder.py build kde
$TMT_TREE/builder.py package kde

View file

@ -1,10 +1,23 @@
summary: Build Minimal image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover:
how: shell
tests:
- name: build image
test: |
dnf --assumeyes install fatcat git-core kiwi distribution-gpg-keys p7zip-plugins python3-boto3 zip zstd libselinux-utils rpmdistro-repoquery
setenforce 0
$TMT_TREE/builder.py build minimal
$TMT_TREE/builder.py package minimal

View file

@ -1,10 +1,23 @@
summary: Build Server image
prepare:
- name: install packages
how: install
package:
- distribution-gpg-keys
- fatcat
- git-core
- kiwi
- libselinux-utils
- p7zip-plugins
- python3-boto3
- rpmdistro-repoquery
- zip
- zstd
discover:
how: shell
tests:
- name: build image
test: |
dnf --assumeyes install fatcat git-core kiwi distribution-gpg-keys p7zip-plugins python3-boto3 zip zstd libselinux-utils rpmdistro-repoquery
setenforce 0
$TMT_TREE/builder.py build server
$TMT_TREE/builder.py package server