[commit: ghc] wip/s3-costs: gitlab-ci: Only keep binary distribution artifacts for master commits (e51c601)

git at git.haskell.org git at git.haskell.org
Tue Jan 22 18:36:59 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/s3-costs
Link       : http://ghc.haskell.org/trac/ghc/changeset/e51c6019f04dcfd0437312bc2d480ff1db1689cf/ghc

>---------------------------------------------------------------

commit e51c6019f04dcfd0437312bc2d480ff1db1689cf
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jan 22 13:24:57 2019 -0500

    gitlab-ci: Only keep binary distribution artifacts for master commits
    
    We previously kept binary distributions for all builds; this has produced nearly
    500 GB of data in less than a month. Here we pare down our production, instead
    only preserving artifacts from builds of the master branch.


>---------------------------------------------------------------

e51c6019f04dcfd0437312bc2d480ff1db1689cf
 .gitlab-ci.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 162c19c..a95e24a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -93,8 +93,15 @@ validate-x86_64-linux-deb8-hadrian:
       THREADS=`mk/detect-cpu-count.sh`
       make V=0 -j$THREADS
     - |
-      make binary-dist TAR_COMP_OPTS="-1"
-      mv ghc-*.tar.xz ghc.tar.xz
+      # Use gzip compression in bindist test for speed
+      make binary-dist-prep TAR_COMP=gzip
+      make test_bindist TAR_COMP=gzip
+    - |
+      # Only keep bindist artifacts for master commits
+      if [ $CI_COMMIT_REF_NAME == "master" ]; then
+          make binary-dist TAR_COMP_OPTS="-1"
+          mv ghc-*.tar.xz ghc.tar.xz
+      fi
     - |
       THREADS=`mk/detect-cpu-count.sh`
       make $TEST_TYPE THREADS=$THREADS JUNIT_FILE=../../junit.xml



More information about the ghc-commits mailing list