summaryrefslogtreecommitdiffstats
path: root/.packit.yaml
blob: 575e3515e96679571b5d79e745a40921bcab46ef (plain)
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
---
# https://packit.dev/docs/configuration/
# Test locally running: packit build locally
# spell-checker:ignore packit specfile copr epel
specfile_path: dist/python-ansible-compat.spec
actions:
  create-archive:
    # packit.dev service does have these module pre-installed:
    - python3 -m build --sdist --outdir dist
    - sh -c "ls dist/ansible-compat-*.tar.gz"
  get-current-version:
    - ./tools/get-version.sh
  post-upstream-clone:
    - rm -f dist/*.tar.gz || true
    - ./tools/update-version.sh
srpm_build_deps:
  - python3-build
  - python3-setuptools_scm
  - python3-pytest
  - python3-pytest-mock
jobs:
  - job: copr_build
    trigger: commit
    branch: main
    targets:
      - fedora-rawhide-x86_64
      - fedora-rawhide-aarch64
      - fedora-latest-x86_64
      - fedora-latest-aarch64
      # Missing python3-build see https://bugzilla.redhat.com/show_bug.cgi?id=2129071
      # - centos-stream-9-aarch64
      # - centos-stream-9-x86_64
  - job: tests
    trigger: pull_request
    branch: main
    targets:
      - fedora-latest
      - fedora-rawhide
  # - job: propose_downstream
  #   trigger: release
  #   metadata:
  #     dist-git-branch: master