mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
CI: Travis: build.sh: add: vars checks and defaults
M build.sh
This commit is contained in:
parent
39ab999801
commit
7c6d5c295f
27
build.sh
27
build.sh
@ -14,5 +14,30 @@ else
|
||||
--arg doTracing $TRACING \
|
||||
--arg doStrict $STRICT \
|
||||
$@
|
||||
GHCVERSION=${GHCVERSION:-ghc865}
|
||||
fi
|
||||
# NOTE: If var not imported - set to the default value
|
||||
GHCVERSION=${GHCVERSION:-ghc865}
|
||||
rev=${rev:-nixpkgs-unstable}
|
||||
NIX_PATH=${NIX_PATH:-"nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"}
|
||||
export NIX_PATH
|
||||
name=${name:-defaultBinaryName}
|
||||
pkgName=${pkgName:-defaultPkgName}
|
||||
failOnAllWarnings=${failOnAllWarnings:-'false'}
|
||||
checkUnusedPackages=${checkUnusedPackages:-'false'}
|
||||
doCoverage=${doCoverage:-'false'}
|
||||
doHaddock=${doHaddock:-'false'}
|
||||
doJailbreak=${doJailbreak:-'false'}
|
||||
doCheck=${doCheck:-'true'}
|
||||
doBenchmark=${doBenchmark:-'false'}
|
||||
enableExecutableProfiling=${enableExecutableProfiling:-'false'}
|
||||
enableLibraryProfiling=${enableLibraryProfiling:-'false'}
|
||||
buildFromSdist=${buildFromSdist:-'false'}
|
||||
buildStrictly=${buildStrictly:-'false'}
|
||||
disableOptimization=${disableOptimization:-'true'}
|
||||
buildStackProject=${buildStackProject:-'false'}
|
||||
# NOTE: *Oprparse* key is redifined in the code further
|
||||
generateOptparseApplicativeCompletion=${generateOptparseApplicativeCompletion:-'false'}
|
||||
allowInconsistentDependencies=${allowInconsistentDependencies:-'false'}
|
||||
ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'}
|
||||
ghcjsLogTailLength=${ghcjsLogTailLength:-'10000'}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user