forked from mdaffin/loopdev
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.packit.yaml
More file actions
42 lines (37 loc) · 1.12 KB
/
.packit.yaml
File metadata and controls
42 lines (37 loc) · 1.12 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
upstream_project_url: https://github.com/stratis-storage/loopdev-3
packages:
loopdev-3:
specfile_path: ../distro/rust-loopdev-3.spec
downstream_package_name: loopdev-3
actions:
post-upstream-clone:
- "mkdir ../distro"
- "bash -c '(cd ../distro; wget https://src.fedoraproject.org/rpms/rust-loopdev-3/raw/rawhide/f/rust-loopdev-3.spec https://src.fedoraproject.org/rpms/rust-loopdev-3/raw/rawhide/f/rust2rpm.toml)'"
- "cargo install cargo-get"
create-archive:
- "cargo package --no-verify"
- "bash -c '(cd ../distro; rust2rpm loopdev-3)'"
- "bash -c 'echo \"target/package/loopdev-3-$(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
targets:
- fedora-all
- job: copr_build
trigger: commit
identifier: copr_commit
preserve_project: true
targets:
- fedora-all
notifications:
pull_request:
successful_build: true