Skip to content

Commit

Permalink
feat: run integration tests in testing-farm
Browse files Browse the repository at this point in the history
Extend the packit configuration to trigger tests on testing-farm after
the completion of the build jobs.

The tests are split for the different distributions supported; this is
due to the current limitation of testing-farm in the way additional
repositories can be supplied: as the name of a Fedora Copr repository
cannot be specified, each distribution needs to get the repository URL
for it.

Manually specify the RHEL targets/composes due to the limitations in the
packit<->testing-farm mapping of RHEL composes.

Signed-off-by: Pino Toscano <[email protected]>
  • Loading branch information
ptoscano committed Dec 8, 2023
1 parent 610ceaa commit e613b63
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,49 @@ jobs:
- fedora-all
- rhel-8
- rhel-9

- job: tests
trigger: pull_request
identifier: "unit/centos-stream"
targets:
- centos-stream-8
- centos-stream-9
labels:
- unit
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/yggdrasil/latest/repo/centos-stream-$releasever/group_yggdrasil-latest-centos-stream-$releasever.repo

- job: tests
trigger: pull_request
identifier: "unit/fedora"
targets:
- fedora-all
labels:
- unit
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/yggdrasil/latest/repo/fedora-$releasever/group_yggdrasil-latest-fedora-$releasever.repo

- job: tests
trigger: pull_request
identifier: "unit/rhel"
targets:
rhel-8-x86_64:
distros:
- RHEL-8-Released
rhel-9-x86_64:
distros:
- RHEL-9.4.0-Nightly
labels:
- unit
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/yggdrasil/latest/repo/rhel-$releasever/group_yggdrasil-latest-rhel-$releasever.repo
use_internal_tf: true

0 comments on commit e613b63

Please sign in to comment.