From 6c70cda5c5975086f93414f6c1531d4d49410c94 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Thu, 28 May 2020 01:00:14 +0300 Subject: [PATCH] CI: Travis: build.sh: BUILD_PROJECT: upd: normal GHC, notes, lot of features M build.sh --- build.sh | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index 0a78375..e5de5f0 100755 --- a/build.sh +++ b/build.sh @@ -7,15 +7,6 @@ set -xe set -euo pipefail IFS=$'\n\t' -if [ "$GHCVERSION" = "ghcjs" ]; then - nix-build --substituters 'https://nixcache.reflex-frp.org?trusted=1' ghcjs -else - nix-build \ - --argstr compiler $GHCVERSION \ - --arg doTracing $TRACING \ - --arg doStrict $STRICT \ - $@ -fi # NOTE: If var not imported - set to the default value GHCVERSION=${GHCVERSION:-ghc865} rev=${rev:-nixpkgs-unstable} @@ -42,6 +33,34 @@ allowInconsistentDependencies=${allowInconsistentDependencies:-'false'} ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'} ghcjsLogTailLength=${ghcjsLogTailLength:-'10000'} +if [ "$GHCVERSION" = "ghcjs" ]; then + nix-build --substituters 'https://nixcache.reflex-frp.org?trusted=1' ghcjs + else + + # NOTE: Normal GHC build + # NOTE: GHC sometimes produces logs so big - that Travis terminates builds, so multiple --quiet + nix-build \ + --quiet --quiet \ + --argstr compiler "$GHCVERSION" \ + --arg failOnAllWarnings "$failOnAllWarnings" \ + --arg buildStrictly "$buildStrictly" \ + --arg checkUnusedPackages "$checkUnusedPackages" \ + --arg doCoverage "$doCoverage" \ + --arg doHaddock "$doHaddock" \ + --arg doJailbreak "$doJailbreak" \ + --arg doCheck "$doCheck" \ + --arg doBenchmark "$doBenchmark" \ + --arg enableExecutableProfiling "$enableExecutableProfiling" \ + --arg enableLibraryProfiling "$enableLibraryProfiling" \ + --arg buildFromSdist "$buildFromSdist" \ + --arg buildStrictly "$buildStrictly" \ + --arg disableOptimization "$disableOptimization" \ + --arg buildStackProject "$buildStackProject" \ + "$generateOptparseApplicativeCompletion" \ + --arg allowInconsistentDependencies "$allowInconsistentDependencies" \ + "$@" + +fi } MAIN() {