-
Notifications
You must be signed in to change notification settings - Fork 143
/
.packit.yaml
159 lines (133 loc) · 3.46 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
specfile_path: tmt.spec
files_to_sync:
- tmt.spec
- .packit.yaml
upstream_package_name: tmt
downstream_package_name: tmt
upstream_project_url: https://github.com/teemtee/tmt
issue_repository: https://github.com/teemtee/tmt
srpm_build_deps:
- hatch
- python3-hatch-vcs
actions: &base-actions
create-archive:
- hatch run docs:man
- hatch build -t sdist
- bash -c "ls dist/tmt-*.tar.gz"
get-current-version:
- hatch version
targets: &all-targets
- fedora-all
- epel-9
# Uncomment below line if OpenScanHub scans are failing
# osh_diff_scan_after_copr_build: false
# Common definitions
_:
# Copr jobs under the packit project
- &copr-under-packit
job: copr_build
# Copr jobs under the teemtee project
- &copr-under-teemtee
<<: *copr-under-packit
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
# Test jobs base setup
- &test-base
job: tests
trigger: pull_request
# Latest fedora & epel targets
- &latest-targets
- fedora-latest-stable
- epel-9
# Internal jobs
- &internal
use_internal_tf: True
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- &tmt-cloud-resources
settings:
provisioning:
tags:
BusinessUnit: tmt
# Full test requires
- &require-full-tests
require:
label:
present:
- ci | full test
absent:
- status | discuss
jobs:
# Build released bits to stable
- <<: *copr-under-teemtee
trigger: release
project: stable
# Build commits merged to main to latest
- <<: *copr-under-teemtee
trigger: commit
branch: main
project: latest
# Build pull requests
- <<: *copr-under-packit
trigger: pull_request
# Test core
- <<: *test-base
targets: *latest-targets
identifier: core
tmt_plan: '/plans/features/(core|basic)'
# Test full
- <<: *test-base
<<: *require-full-tests
identifier: full
# Do not run extended unit tests. That plan gets its own job
# because of podman vs systemd-resolved flakiness.
tmt_plan: '^(?!/plans/features/extended-unit-tests).*$'
# Extended unit tests
- <<: *test-base
<<: *require-full-tests
targets: [ fedora-latest-stable ]
identifier: extended-unit-tests
tmt_plan: '/plans/features/extended-unit-tests$'
# Test virtual & bootc provision plugins
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: provision
tmt_plan: '/plans/provision/(bootc|virtual)'
tf_extra_params:
environments:
- tmt:
context:
how: provision
- *tmt-cloud-resources
# Test internal plugins
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-plugins
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git"
# Test internal wow
- <<: *test-base
<<: *internal
<<: *require-full-tests
identifier: internal-wow
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git"
tmt_plan: '/tmt/integration/plan'
# Propose downstream pull requests
- job: propose_downstream
trigger: release
dist_git_branches: *all-targets
# Create koji builds
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "all_committers"]
dist_git_branches: *all-targets
# Create bodhi updates
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9