summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-18 14:41:26 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-11-20 02:11:43 -0500
commit802e9180dd9a9a88c4e8869f0de1048e1edd6343 (patch)
tree62e70674c8eff33ac07166cfa41bd7979d66f9b7
parentb739c319dd56fa2aabd8007cc200eafb3c7651a7 (diff)
downloadhaskell-802e9180dd9a9a88c4e8869f0de1048e1edd6343.tar.gz
gitlab-ci: Add VERBOSE environment variable
And change the make build system's default behavior to V=0, greatly reducing build log sizes.
-rwxr-xr-x.gitlab/ci.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 5bcc6f5c5b..ffab2845c9 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -43,6 +43,7 @@ Hadrian build system
Environment variables affecting both build systems:
+ VERBOSE Set to non-empty for verbose build output
MSYSTEM (Windows-only) Which platform to build form (MINGW64 or MINGW32).
Environment variables determining build configuration of Make system:
@@ -398,6 +399,11 @@ function build_make() {
if [[ -z "$BIN_DIST_PREP_TAR_COMP" ]]; then
fail "BIN_DIST_PREP_TAR_COMP is not set"
fi
+ if [[ -n "$VERBOSE" ]]; then
+ MAKE_ARGS="$MAKE_ARGS V=1"
+ else
+ MAKE_ARGS="$MAKE_ARGS V=0"
+ fi
echo "include mk/flavours/${BUILD_FLAVOUR}.mk" > mk/build.mk
echo 'GhcLibHcOpts+=-haddock' >> mk/build.mk
@@ -491,6 +497,7 @@ function clean() {
function run_hadrian() {
if [ -z "$BIGNUM_BACKEND" ]; then BIGNUM_BACKEND="gmp"; fi
+ if [ -n "$VERBOSE" ]; then HADRIAN_ARGS="$HADRIAN_ARGS -V"; fi
run hadrian/build-cabal \
--flavour="$BUILD_FLAVOUR" \
-j"$cores" \