-
Notifications
You must be signed in to change notification settings - Fork 14
/
.packit.yaml
153 lines (127 loc) · 3.83 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
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: mrack.spec
# add or remove files that should be synced
files_to_sync:
- mrack.spec
- README.md
- .packit.yaml
- gating.yaml
- ci.fmf
# we need to sync tmt for TF to work in Fedora updates
- src: ./tests/smoke/*
dest: ./tests/smoke/
- src: ./plans/*
dest: ./plans/
# Allow dist git reactions on packit and tdudlak commits and PRs
allowed_pr_authors:
- packit
- tdudlak
allowed_committers:
- packit
- tdudlak
# name in upstream package repository/registry (e.g. in PyPI)
upstream_package_name: mrack
# downstream (Fedora) RPM package name
downstream_package_name: mrack
# mrack uses tag v(ver_number) and we need to make sure packit know what to expect
# see: https://packit.dev/docs/configuration/#upstream_tag_template
upstream_tag_template: "v{version}"
sync_changelog: true
actions:
create-archive:
- "python3 setup.py sdist --dist-dir ."
- "sh -c 'echo mrack-$(python3 setup.py --version).tar.gz'"
get-current-version:
- "python3 setup.py --version"
jobs:
- job: copr_build
trigger: pull_request
release_suffix: "99.dev.{PACKIT_PROJECT_BRANCH}"
targets: [fedora-all, epel-8, epel-9]
- job: tests
trigger: pull_request
identifier: "upstream-smoke"
targets: [fedora-all, epel-8, epel-9]
- job: copr_build
trigger: commit
targets: [fedora-all, epel-8, epel-9]
- job: copr_build
trigger: release
owner: "@freeipa"
project: neoave
targets: [fedora-all, epel-8, epel-9]
- job: propose_downstream
trigger: release
dist_git_branches: [fedora-all, epel-8, epel-9]
- job: koji_build
trigger: commit
dist_git_branches: [fedora-all, epel-8, epel-9]
- job: bodhi_update
trigger: commit
dist_git_branches: [fedora-branched, epel-8, epel-9] # rawhide updates are created automatically
# # pr_osp
# - &internal_test # use openstack (osp) tests as template for other test cases
# job: tests
# fmf_url: "https://gitlab.cee.redhat.com/idm-ops/mrack-internal-tests"
# fmf_ref: "main"
# use_internal_tf: True
# targets: [fedora-latest-stable]
# identifier: "internal-provisioning-osp"
# trigger: pull_request
# env:
# MRACK_TEST_CASE: "provisioning-osp"
# - &pr_aws
# <<: *internal_test
# identifier: "internal-provisioning-aws"
# env:
# MRACK_TEST_CASE: "provisioning-aws"
# - &pr_bkr_cpu
# <<: *internal_test
# identifier: "internal-provisioning-bkr-c9s-req1cpu"
# env:
# MRACK_TEST_CASE: "provisioning-bkr-c9s-req1cpu"
# - &pr_bkr_ppc64le
# <<: *internal_test
# identifier: "internal-provisioning-bkr-fedora-ppc64le"
# env:
# MRACK_TEST_CASE: "provisioning-bkr-fedora-ppc64le"
# - &pr_bkr_mem_cpu
# <<: *internal_test
# identifier: "internal-provisioning-bkr-rhel-8-req-2048mem-2cpu"
# env:
# MRACK_TEST_CASE: "provisioning-bkr-rhel-8-req-2048mem-2cpu"
# - &pr_bkr_mem
# <<: *internal_test
# identifier: "internal-provisioning-bkr-rhel-9-req-4069mem"
# env:
# MRACK_TEST_CASE: "provisioning-bkr-rhel-9-req-4069mem"
# - &pr_mrack_all_ssh
# <<: *internal_test
# identifier: "internal-all-providers-ssh"
# trigger: pull_request
# env:
# MRACK_TEST_CASE: "all-providers-ssh"
# # run the same internal tests as in PR for commit in main
# - &main_osp
# <<: *internal_test # pr_osp
# trigger: commit
# - &main_aws
# <<: *pr_aws
# trigger: commit
# - &main_bkr_ppc64le
# <<: *pr_bkr_ppc64le
# trigger: commit
# - &main_bkr_cpu
# <<: *pr_bkr_cpu
# trigger: commit
# - &main_bkr_mem_cpu
# <<: *pr_bkr_mem_cpu
# trigger: commit
# - &main_bkr_mem
# <<: *pr_bkr_mem
# trigger: commit
# - &main_mrack_all_ssh
# <<: *pr_mrack_all_ssh
# trigger: commit