|
| 1 | +# See the documentation for more information: |
| 2 | +# https://packit.dev/docs/configuration/ |
| 3 | + |
| 4 | +specfile_path: ./distro/stratis-cli.spec |
| 5 | + |
| 6 | +# add or remove files that should be synced |
| 7 | +files_to_sync: |
| 8 | + - ./distro/stratis-cli.spec |
| 9 | + - .packit.yaml |
| 10 | + |
| 11 | +# name in upstream package repository or registry (e.g. in PyPI) |
| 12 | +upstream_package_name: stratis-cli |
| 13 | +# downstream (Fedora) RPM package name |
| 14 | +downstream_package_name: stratis-cli |
| 15 | + |
| 16 | + |
| 17 | +# Release sufix for development builds can be redefined. |
| 18 | +# (https://packit.dev/docs/configuration/#release_suffix) |
| 19 | +# release_suffix: "dev.{PACKIT_PROJECT_BRANCH}" |
| 20 | + |
| 21 | +actions: |
| 22 | +# = User-defined hooks or redefined parts of the workflow. |
| 23 | +# (https://packit.dev/docs/actions/) |
| 24 | + post-upstream-clone: |
| 25 | + - "mkdir distro" |
| 26 | + - "wget https://raw.githubusercontent.com/stratis-storage/ci/master/mockbuild_test/stratis-cli.spec -O distro/stratis-cli.spec" |
| 27 | + - "wget https://raw.githubusercontent.com/stratis-storage/ci/master/release_management/create_artifacts.py -O distro/create_artifacts.py" |
| 28 | + - "wget https://raw.githubusercontent.com/stratis-storage/ci/master/release_management/_utils.py -O distro/_utils.py" |
| 29 | + - "sed 's/\\\"python\\\",\\ \\\"setup.py\\\"/\\\"python3\\\",\\ \\\"setup.py\\\"/g' ./distro/_utils.py -i" |
| 30 | + create-archive: |
| 31 | + - "sh -c 'python3 ./distro/create_artifacts.py ./distro/ stratis-cli $(python3 setup.py --version)'" |
| 32 | + - "sh -c 'echo distro/stratis-cli-$(python3 setup.py --version).tar.gz'" |
| 33 | + get-current-version: |
| 34 | + - "python3 setup.py --version" |
| 35 | + |
| 36 | +srpm_build_deps: |
| 37 | +# = Dependencies required to perform an SRPM build in Copr. |
| 38 | + - python3-pip # "python3 setup.py --version" needs it |
| 39 | + - wget |
| 40 | + |
| 41 | +jobs: |
| 42 | +# Other jobs can be found here: |
| 43 | +# https://packit.dev/docs/configuration/#supported-jobs |
| 44 | + - job: copr_build |
| 45 | + trigger: pull_request |
| 46 | + targets: |
| 47 | + - fedora-stable |
0 commit comments