-
Notifications
You must be signed in to change notification settings - Fork 236
/
.packit.yaml
75 lines (66 loc) · 1.75 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
# See the documentation for more information:
# https://packit.dev/docs/configuration/
---
require:
label:
absent:
- no-ci-builds
actions:
create-archive:
- bash -c "tito build --tgz --test -o ."
- bash -c "ls -1t ./*.tar.gz | head -n 1"
get-current-version:
- bash -c "grep ^Version \"$PACKIT_CONFIG_PACKAGE_NAME.spec\" | awk '{ print $2 }'"
# We need to keep the pushed SHA, it is later exported
# as $PACKIT_COMMIT_SHA for Testing Farm jobs.
merge_pr_in_ci: false
packages:
mock:
specfile_path: mock.spec
paths:
- ./mock
downstream_package_name: mock
upstream_tag_template: mock-{version}
mock-core-configs:
specfile_path: mock-core-configs.spec
paths:
- ./mock-core-configs
downstream_package_name: mock-core-configs
upstream_tag_template: mock-core-configs-{version}
srpm_build_deps:
- tito
- git
jobs:
- <<: &pr_build
job: copr_build
trigger: pull_request
packages:
- mock
- mock-core-configs
targets:
- fedora-rawhide
- fedora-41
- fedora-40
additional_repos:
- copr://@mock/mock-deps
- <<: *pr_build
trigger: commit
owner: "@mock"
project: "mock"
branch: main
- <<: &pr_test
job: tests
trigger: pull_request
targets:
- fedora-40
# We don't want to run two test runs; so we limit this to a single package
packages:
- mock
- <<: *pr_test
trigger: commit
tf_extra_params:
# https://cockpit-project.org/blog/tmt-cross-project-testing.html
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/mock/mock-deps/repo/fedora-$releasever/group_mock-mock-deps-fedora-$releasever.repo