CI: Travis: build.sh: BUILD_PROJECT: upd: normal GHC, notes, lot of features

M  build.sh
This commit is contained in:
Anton-Latukha 2020-05-28 01:00:14 +03:00
parent f4a0e64b07
commit 6c70cda5c5
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 28 additions and 9 deletions

View File

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