forked from teemtee/tmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yaml
170 lines (152 loc) · 4.12 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
160
161
162
163
164
165
166
167
168
169
170
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
osh_diff_scan_after_copr_build: false
jobs:
# Build pull requests
- &copr_build
job: copr_build
trigger: pull_request
actions:
<<: *base-actions
get-current-version:
# Use `dev888` instead of the last version digit to make
# builds older than the final release and newer than
# copr builds from main. Remove the remaining suffix
# generated by `hatch version` as well so that build
# with the latest timestamp always wins.
- bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev.*/.dev888/'"
# Test core
- &tests
job: tests
trigger: pull_request
targets: &latest-targets
- fedora-latest-stable
- epel-9
identifier: core
tf_extra_params:
test:
tmt:
name: /plans/features/(core|basic)
# Test full
# Do not run extended unit tests, that plan gets its own job because
# of podman vs systemd-resolved flakiness.
- <<: *tests
targets: *all-targets
require: &require-full-tests
label:
present:
- ci | full test
absent:
- status | discuss
identifier: full
tf_extra_params:
test:
tmt:
name: '^(?!/plans/features/extended-unit-tests).*$'
# Extended unit tests
- <<: *tests
targets: [ fedora-latest-stable ]
require: *require-full-tests
identifier: extended-unit-tests
tf_extra_params:
test:
tmt:
name: '/plans/features/extended-unit-tests$'
# Test virtual provision
- <<: *tests
use_internal_tf: True
targets: &internal-targets
- fedora-latest-stable
require: *require-full-tests
identifier: provision
tf_extra_params:
test:
tmt:
name: /plans/provision/virtual
environments:
- tmt:
context:
how: provision
- &tmt-cloud-resources
settings:
provisioning:
tags:
BusinessUnit: tmt
# Test internal plugins
- <<: *tests
use_internal_tf: True
targets: *internal-targets
require: *require-full-tests
identifier: internal-plugins
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/tmt.git"
# Tag cloud resources for tmt
tf_extra_params:
environments:
- *tmt-cloud-resources
# Test internal wow
- <<: *tests
use_internal_tf: True
targets: *internal-targets
require: *require-full-tests
identifier: internal-wow
fmf_url: "https://gitlab.cee.redhat.com/baseos-qe/integration_scripts.git"
tmt_plan: "/tmt/integration/plan"
tf_extra_params:
environments:
- *tmt-cloud-resources
# Build commits to main
- <<: *copr_build
trigger: commit
branch: main
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
project: tmt
release_suffix: "{PACKIT_PROJECT_BRANCH}"
actions:
<<: *base-actions
get-current-version:
# Get rid of the the final version digit to make copr
# builds older than the final release
- bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev/.dev/'"
# Release to copr
- <<: *copr_build
trigger: release
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
project: tmt
actions: *base-actions
# Fedora releases
- job: propose_downstream
trigger: release
dist_git_branches: *all-targets
- job: koji_build
trigger: commit
allowed_pr_authors: [ "packit", "psss", "lzachar" ]
allowed_committers: [ "packit", "psss", "lzachar" ]
dist_git_branches: *all-targets
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9