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 3, 2023
1 parent 855027c commit 28f40e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: rpm/initoverlayfs.spec
specfile_path: initoverlayfs.spec
upstream_tag_template: v{version}

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 28f40e1

Please sign in to comment.