-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy path.packit.yaml
55 lines (50 loc) · 1.89 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
specfile_path: fapolicyd.spec
upstream_package_name: fapolicyd
downstream_package_name: fapolicyd
upstream_tag_template: v{version}
jobs:
- job: copr_build
trigger: pull_request
identifier: build-normal
actions:
post-upstream-clone:
- bash -c "sed -i 's/#ELN %//' fapolicyd.spec"
- bash -c "curl -L -o $(grep Source1 fapolicyd.spec | cut -d ' ' -f 2 | sed -r \"s/%\{name\}/$(grep 'Name:' fapolicyd.spec | cut -f 2 -d ' ')/g;s/%\{semodule_version\}/$(grep '%define semodule_version' fapolicyd.spec | cut -f 3 -d ' ')/g\" | sed -r 's|(.*)#/(.*)|\2 \1|')"
- bash -c "curl -L -o $(grep Source2 fapolicyd.spec | cut -d ' ' -f 2 | sed -r 's|(.*)#/(.*)|\2 \1|')"
- bash -c "cp uthash*.tar.gz /builddir/build/SOURCES/"
- bash -c "pwd"
- bash -c "ls -la"
targets:
- fedora-all
- epel-9
- epel-8
- job: copr_build
trigger: pull_request
identifier: build-asan
actions:
post-upstream-clone:
- bash -c "sed -i 's/#ASAN %//' fapolicyd.spec"
- bash -c "sed -i 's/#ELN %//' fapolicyd.spec"
- bash -c "curl -L -o $(grep Source1 fapolicyd.spec | cut -d ' ' -f 2 | sed -r \"s/%\{name\}/$(grep 'Name:' fapolicyd.spec | cut -f 2 -d ' ')/g;s/%\{semodule_version\}/$(grep '%define semodule_version' fapolicyd.spec | cut -f 3 -d ' ')/g\" | sed -r 's|(.*)#/(.*)|\2 \1|')"
- bash -c "curl -L -o $(grep Source2 fapolicyd.spec | cut -d ' ' -f 2 | sed -r 's|(.*)#/(.*)|\2 \1|')"
- bash -c "cp uthash*.tar.gz /builddir/build/SOURCES/"
- bash -c "pwd"
- bash -c "ls -la"
targets:
- fedora-all
- epel-9
- epel-8
- job: tests
trigger: pull_request
identifier: build-normal
targets:
- fedora-all
- epel-9
- epel-8
- job: tests
trigger: pull_request
identifier: build-asan
targets:
- fedora-all
- epel-9
- epel-8