mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
19 lines
496 B
Bash
Executable File
19 lines
496 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# NOTE: Script for the CI builds. CI comes here from `.travis.yml`
|
|
|
|
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 \
|
|
$@
|
|
GHCVERSION=${GHCVERSION:-ghc865}
|
|
fi
|