~fnux/pisk

ref: 790df8955b343c2c11643d1be3d072c00fc7b038 pisk/.build.yml -rw-r--r-- 751 bytes
790df895Timothée Floure Build RPM in common CI pipeline 2 years ago
                                                                                
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
image: fedora/29
secrets:
  - 7bbe8728-a847-4745-8923-544b30208980
packages:
  - perl-Perl-Critic
sources:
  - https://git.sr.ht/~fnux/pisk
tasks:
  - lint: |
      cd pisk
      perlcritic --verbose 8 --harsh pisk
  - build-rpm: |
      sudo dnf install -y rpmdevtools fedpkg
      cd pisk/dist/rpm
      sudo dnf builddep -y pisk.spec
      spectool -gf pisk.spec
      fedpkg --release f29 local
  - rpm-check: |
      sudo dnf install -y rpmlint
      cd pisk/dist/rpm
      rpmlint *.src.rpm *.rpm noarch/*.rpm
      # Stop build unless running against a tag
      if ! git describe --exact-match --tags HEAD; then
        complete-build
      fi
  - copr-rebuild: |
      sudo dnf install -y curl
      curl -X POST $(cat ~/.copr-webhook)/pisk/