-
Notifications
You must be signed in to change notification settings - Fork 86
/
.packit.yaml
111 lines (100 loc) · 3.17 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
actions:
get-current-version:
- "python3 ./setup.py --version"
create-archive:
- "make local"
- 'bash -c "ls *.tar*"'
fix-spec-file:
# define the Source variables
- bash -c "sed -i python-blivet.spec -e \"s/http.*%{realname}-%{realversion}.tar.gz/blivet-${PACKIT_PROJECT_VERSION}.tar.gz/\""
- bash -c "sed -i python-blivet.spec -e \"s/http.*%{realname}-%{realversion}-tests.tar.gz/blivet-${PACKIT_PROJECT_VERSION}-tests.tar.gz/\""
# fill in Release as if packit would have done it
- bash -c "sed -i python-blivet.spec -e \"s/Release:.*/Release:\ ${PACKIT_RPMSPEC_RELEASE}%{?dist}/\""
jobs:
# Fedora builds for the 'main' branch
- job: copr_build
targets:
- fedora-all
trigger: pull_request
branch: main
# CentOS 10 Stream builds for the 'rhel10-branch'
- job: copr_build
targets:
- centos-stream-10-x86_64
trigger: pull_request
branch: rhel10-branch
# Daily builds for Fedora from the 'main' branch
- job: copr_build
trigger: commit
owner: "@storage"
project: blivet-daily
branch: main
preserve_project: true
actions:
post-upstream-clone:
# bump release to 99 to always be ahead of Fedora builds
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" python-blivet.spec"'
get-current-version:
- "python3 ./setup.py --version"
create-archive:
- "make local"
- 'bash -c "ls *.tar*"'
fix-spec-file:
# define the Source variables
- bash -c "sed -i python-blivet.spec -e \"s/http.*%{realname}-%{realversion}.tar.gz/blivet-${PACKIT_PROJECT_VERSION}.tar.gz/\""
- bash -c "sed -i python-blivet.spec -e \"s/http.*%{realname}-%{realversion}-tests.tar.gz/blivet-${PACKIT_PROJECT_VERSION}-tests.tar.gz/\""
# fill in Release as if packit would have done it
- bash -c "sed -i python-blivet.spec -e \"s/Release:.*/Release:\ ${PACKIT_RPMSPEC_RELEASE}%{?dist}/\""
# Fedora tests for the 'main' branch
- job: tests
trigger: pull_request
targets:
- fedora-latest
branch: main
# CentOS 10 Stream tests for the 'rhel10-branch'
- job: tests
trigger: pull_request
targets:
- centos-stream-10-x86_64
branch: rhel10-branch
# Downstream builds
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
# Reverse dependency tests
## run tests for blivet consumers, see plans/ with `revdeps == yes`
- job: tests
identifier: revdeps
trigger: pull_request
branch: main
notifications:
failure_comment:
message: "Blivet-GUI tests failed for commit {commit_sha}. @vojtechtrefny please check."
targets:
- fedora-latest
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/storage/blivet-daily/repo/fedora-$releasever/group_storage-blivet-daily-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"
srpm_build_deps:
- git
- make
- systemd
- gettext
- python3-devel
- python3-setuptools
downstream_package_name: python-blivet
upstream_tag_template: blivet-{version}