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() {