diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-01-22 13:24:57 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-01-22 13:36:40 -0500 |
commit | e51c6019f04dcfd0437312bc2d480ff1db1689cf (patch) | |
tree | 2e7a5b19f0ed70d20ab08d30ca632550ef23a2bf | |
parent | a5373c1fe172dee31e07bcb7c7f6caff1035e6ba (diff) | |
download | haskell-wip/s3-costs.tar.gz |
gitlab-ci: Only keep binary distribution artifacts for master commitswip/s3-costs
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.
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 162c19ccb6..a95e24a2bf 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 |