CI: Travis: build.sh: BUILD_PROJECT: upd: normal GHC, notes, lot of features
M build.sh
This commit is contained in:
parent
f4a0e64b07
commit
6c70cda5c5
37
build.sh
37
build.sh
|
@ -7,15 +7,6 @@ set -xe
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
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
|
# NOTE: If var not imported - set to the default value
|
||||||
GHCVERSION=${GHCVERSION:-ghc865}
|
GHCVERSION=${GHCVERSION:-ghc865}
|
||||||
rev=${rev:-nixpkgs-unstable}
|
rev=${rev:-nixpkgs-unstable}
|
||||||
|
@ -42,6 +33,34 @@ allowInconsistentDependencies=${allowInconsistentDependencies:-'false'}
|
||||||
ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'}
|
ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'}
|
||||||
ghcjsLogTailLength=${ghcjsLogTailLength:-'10000'}
|
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() {
|
MAIN() {
|
||||||
|
|
Loading…
Reference in a new issue