gitlab-ci: add a distribution step.

I don't add this at the end of the distcheck job to make the interface
clearer, and also because the distcheck job will have full build
artifacts (allowing to debug a failing distcheck if necessary), whereas
the `sources` job will just publish tarballs and SHA256 sums generated
from these tarballs. Simple, clean.
This commit is contained in:
Jehan 2020-08-07 16:41:05 +02:00
parent 63dddb5eb7
commit 96073ae1b0
1 changed files with 17 additions and 1 deletions

View File

@ -5,6 +5,7 @@ stages:
- dependencies
- gimp
- analysis
- distribution
variables:
GIT_DEPTH: "1"
@ -158,7 +159,6 @@ gimp-distcheck-debian:
--enable-gtk-doc
- make -j "$(nproc)"
- make -j "$(nproc)" distcheck
allow_failure: true
gimp-meson-debian:
extends: .gimp-debian-base
@ -329,3 +329,19 @@ cppcheck:
paths:
- report
needs: []
## Ready-to-distribute ##
sources:
stage: distribution
dependencies:
- gimp-distcheck-debian
artifacts:
when: always
paths:
- gimp-*.tar.*
- SHA256SUMS
script:
- mv _build/gimp-*.tar.* .
- sha256sum gimp-*.tar.* > SHA256SUMS
needs: ["gimp-distcheck-debian"]