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 df6f9d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 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
8 changes: 4 additions & 4 deletions integration/plans/tier-0.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ adjust:
when: distro == centos-stream-9

prepare:
- name: Prepare Repos
how: shell
script: |
dnf copr enable -y @centos-automotive-sig/next
# - name: Prepare Repos
# how: shell
# script: |
# dnf copr enable -y @centos-automotive-sig/next
- 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 df6f9d4

Please sign in to comment.