-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.packit.yaml
118 lines (112 loc) · 3.62 KB
/
.packit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
specfile_path: packaging/command-line-assistant.spec
upstream_package_name: command-line-assistant
downstream_package_name: command-line-assistant
upstream_project_url: https://github.com/rhel-lightspeed/command-line-assistant
srpm_build_deps: []
jobs:
# Build RPMs for each pull request
- job: copr_build
trigger: pull_request
owner: "@rhel-lightspeed"
project: command-line-assistant
targets:
- epel-9-x86_64
- epel-9-aarch64
- epel-10-x86_64
- epel-10-aarch64
- fedora-40-x86_64
- fedora-40-aarch64
- fedora-41-x86_64
- fedora-41-aarch64
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/command-line-assistant.spec
# Build RPMs for main branch
- job: copr_build
trigger: commit
branch: main
owner: "@rhel-lightspeed"
project: command-line-assistant
targets:
- epel-9-x86_64
- epel-9-aarch64
- epel-10-x86_64
- epel-10-aarch64
- fedora-40-x86_64
- fedora-40-aarch64
- fedora-41-x86_64
- fedora-41-aarch64
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/command-line-assistant.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/command-line-assistant.spec
# Build RPMs for main branch
- job: copr_build
trigger: commit
branch: develop
owner: "@rhel-lightspeed"
project: command-line-assistant
targets:
- epel-9-x86_64
- epel-9-aarch64
- epel-10-x86_64
- epel-10-aarch64
- fedora-40-x86_64
- fedora-40-aarch64
- fedora-41-x86_64
- fedora-41-aarch64
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/command-line-assistant.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/command-line-assistant.spec
# Test jobs
- &deterministic-tests
job: tests
identifier: deterministic-tests-virtual-machine
manual_trigger: false
trigger: pull_request
fmf_url: "https://gitlab.cee.redhat.com/rhel-lightspeed/enhanced-shell/cla-tests"
fmf_ref: main
tmt_plan: "/plans/deterministic"
use_internal_tf: True
targets:
epel-9-x86_64:
distros: [RHEL-9-Nightly]
epel-10-x86_64:
distros: [RHEL-10-Nightly]
epel-9-aarch64:
distros: [RHEL-9-Nightly]
epel-10-aarch64:
distros: [RHEL-10-Nightly]
tf_extra_params:
environments:
- settings:
provisioning:
tags:
BusinessUnit: rhel_sst_lightspeed@upstream
labels:
- deterministic
- vm
- default
# TODO: Once the https://issues.redhat.com/browse/RSPEED-390 is done we can run
# the non deterministic (eval_answers tests)
# - &eval-answers-tests-virtual-machine
# job: tests
# <<: *deterministic-tests
# identifier: eval-answers-tests-virtual-machine
# # Run tests on-demand
# manual_trigger: true
# tmt_plan: "/plans/eval_answers"
# labels:
# - eval-answers
# - eval-answers-vm
# - vm