Skip to content

Commit

Permalink
Adding build to packit
Browse files Browse the repository at this point in the history
Tests should consume created packages from build stage

Signed-off-by: Yariv Rachmani <[email protected]>
  • Loading branch information
Yarboa committed Dec 4, 2023
1 parent 855027c commit 96ce364
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,27 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: rpm/initoverlayfs.spec
upstream_tag_template: v{version}
upstream_project_url: https://github.com/containers/initoverlayfs
issue_repository: https://github.com/containers/initoverlayfs
specfile_path: initoverlayfs.spec
upstream_package_name: initoverlayfs

update_release: false

srpm_build_deps:
- make

jobs:
- job: copr_build
trigger: pull_request
# x86_64 is assumed by default
targets:
- fedora-39-x86_64
- centos-stream-9

- job: tests
trigger: pull_request
identifier: integration-tiers
tmt_plan: /integration/plans/tier-0
skip_build: true
targets:
targets:
- centos-stream-9-x86_64
- fedora-39-x86_64
7 changes: 5 additions & 2 deletions integration/plans/tier-0.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ provision:
how: local

adjust:
- when: distro == centos-stream-9
prepare+:
- name: Prepare c9s Repo
how: shell
order: 10
script: |
dnf install -y epel-release
when: distro == centos-stream-9

prepare:
- when: scenario == manual
prepare+:
- name: Prepare Repos
how: shell
script: |
dnf copr enable -y @centos-automotive-sig/next

prepare:
- name: Install rpms
how: install
package: initoverlayfs
Expand Down
2 changes: 2 additions & 0 deletions integration/tests/boot-validation/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -x

if [ "${TMT_REBOOT_COUNT}" == "1" ];then
echo -n "machine is up"
exit 0
Expand Down

0 comments on commit 96ce364

Please sign in to comment.