[gimp/gimp-2-10] gitlab-ci: add a distribution step.



commit 718c6ec2b85667dff96f2c37e6e232652170a92b
Author: Jehan <jehan girinstud io>
Date:   Sat Aug 8 10:07:29 2020 +0200

    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.

 .gitlab-ci.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e7bf2823de..730f103c07 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ image: debian:testing
 stages:
   - dependencies
   - gimp
+  - distribution
 
 variables:
   GIT_DEPTH: "1"
@@ -192,3 +193,19 @@ gimp-debian/testing-autotools-distcheck:
     - make -j "$(nproc)"
     - make -j "$(nproc)" distcheck
   allow_failure: true
+
+## Ready-to-distribute ##
+
+sources:
+  stage: distribution
+  dependencies:
+    - gimp-debian/testing-autotools-distcheck
+  artifacts:
+    when: always
+    paths:
+    - gimp-*.tar.*
+    - SHA256SUMS
+  script:
+    - mv _build/gimp-*.tar.* .
+    - sha256sum gimp-*.tar.* > SHA256SUMS
+  needs: ["gimp-debian/testing-autotools-distcheck"]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]