Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[packit] test in the internal TF #307

Merged
merged 3 commits into from
Sep 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ upstream_package_name: convert2rhel
downstream_package_name: convert2rhel
upstream_project_url: https://github.com/oamg/convert2rhel

actions:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec

jobs:
- job: copr_build
trigger: pull_request
Expand All @@ -13,10 +18,8 @@ jobs:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
actions:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
- oraclelinux-7-x86_64
- oraclelinux-8-x86_64
- job: copr_build
trigger: commit
metadata:
Expand All @@ -27,18 +30,19 @@ jobs:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
- oraclelinux-7-x86_64
- oraclelinux-8-x86_64
actions:
# bump spec so we get release starting with 2 and hence all the default branch builds will
# have higher NVR than all the PR builds
post-upstream-clone:
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/convert2rhel.spec
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
- job: tests
metadata:
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
- oraclelinux-7-x86_64
- oraclelinux-8-x86_64
use_internal_tf: True
trigger: pull_request