39b8f8e1909f759e4fa43cbefa511191ca91b475 — Timothée Floure 5 months ago 348f61a
Rebase CI on Fedora, build rpm package on tags
1 files changed, 21 insertions(+), 2 deletions(-)

M .build.yml
M .build.yml => .build.yml +21 -2
@@ 1,9 1,28 @@-image: debian/stretch
+ image: fedora/29
+ secrets:
+   - 7bbe8728-a847-4745-8923-544b30208980
  packages:
-   - libperl-critic-perl
+   - perl-Perl-Critic
  sources:
    - https://git.sr.ht/~fnux/pisk
  tasks:
    - lint: |
        cd pisk
        perlcritic --verbose 8 --harsh pisk
+       # Stop build unless running against a tag
+       if ! git describe --exact-match --tags HEAD; then
+         complete-build
+       fi
+   - build-rpm: |
+       sudo dnf install -y rpmdevtools fedpkg
+       cd pick/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
+   - copr-rebuild: |
+       sudo dnf install -y curl
+       curl -X POST $(cat ~/.copr-webhook)/pisk/