-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.packit.yaml
More file actions
61 lines (54 loc) · 2.17 KB
/
.packit.yaml
File metadata and controls
61 lines (54 loc) · 2.17 KB
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
---
upstream_project_url: https://github.com/stratis-storage/devicemapper
packages:
devicemapper-sys:
specfile_path: ../distro/rust-devicemapper-sys.spec
downstream_package_name: rust-devicemapper-sys
actions:
post-upstream-clone:
- "mkdir ../distro"
- "bash -c '(cd ../distro; wget https://src.fedoraproject.org/rpms/rust-devicemapper-sys/raw/rawhide/f/rust-devicemapper-sys.spec https://src.fedoraproject.org/rpms/rust-devicemapper-sys/raw/rawhide/f/rust2rpm.toml)'"
- "cargo install cargo-get"
create-archive:
- "bash -c '(cd devicemapper-rs-sys; cargo package --no-verify)'"
- "bash -c '(cd ../distro; rust2rpm devicemapper-sys)'"
- "bash -c 'echo \"devicemapper-rs-sys/target/package/devicemapper-sys-$(cd devicemapper-rs-sys; cargo get package.version).crate\"'"
get-current-version:
- "bash -c '(cd devicemapper-rs-sys; cargo get package.version)'"
devicemapper:
specfile_path: ../distro/rust-devicemapper.spec
downstream_package_name: rust-devicemapper
actions:
post-upstream-clone:
- "mkdir ../distro"
- "bash -c '(cd ../distro; wget https://src.fedoraproject.org/rpms/rust-devicemapper/raw/rawhide/f/rust-devicemapper.spec)'"
- "bash -c '(cd ../distro; wget https://src.fedoraproject.org/rpms/rust-devicemapper/raw/rawhide/f/rust-devicemapper.spec https://src.fedoraproject.org/rpms/rust-devicemapper/raw/rawhide/f/rust2rpm.toml)'"
- "cargo install cargo-get"
create-archive:
- "cargo package --no-verify"
- "bash -c '(cd ../distro; rust2rpm devicemapper)'"
- "bash -c 'echo \"target/package/devicemapper-$(cargo get package.version).crate\"'"
get-current-version:
- "cargo get package.version"
srpm_build_deps:
- cargo
- rust2rpm
- rust2rpm-helper
- wget2
- wget2-wget
jobs:
- job: copr_build
trigger: pull_request
identifier: copr_pull
osh_diff_scan_after_copr_build: false
targets:
- fedora-all
- job: copr_build
trigger: commit
identifier: copr_commit
preserve_project: true
targets:
- fedora-all
notifications:
pull_request:
successful_build: true