forked from rpm-software-management/mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yaml
60 lines (53 loc) · 1.36 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
# See the documentation for more information:
# https://packit.dev/docs/configuration/
---
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-latest-stable
- <<: *pr_build
trigger: commit
owner: "@mock"
project: "mock"
branch: main
- <<: &pr_test
job: tests
trigger: pull_request
targets:
- fedora-latest-stable
# We don't want to run two test runs; so we limit this to a single package
packages:
- mock
- <<: *pr_test
trigger: commit