summaryrefslogtreecommitdiff
path: root/.circleci/prepare-system.sh
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/prepare-system.sh')
-rwxr-xr-x.circleci/prepare-system.sh24
1 files changed, 21 insertions, 3 deletions
diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index 5d4d630bcb..063c70a328 100755
--- a/.circleci/prepare-system.sh
+++ b/.circleci/prepare-system.sh
@@ -7,6 +7,18 @@ fail() {
exit 1
}
+echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk
+echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk
+
+cat > mk/build.mk <<EOF
+V=1
+HADDOCK_DOCS=YES
+LATEX_DOCS=YES
+HSCOLOUR_SRCS=YES
+BUILD_DOCBOOK_HTML=YES
+BeConservative=YES
+EOF
+
case "$(uname)" in
Linux)
if [[ -n ${TARGET:-} ]]; then
@@ -14,17 +26,23 @@ case "$(uname)" in
# cross-compiling to FreeBSD
add-apt-repository -y ppa:hvr/ghc
apt-get update -qq
- apt-get install -qy ghc-8.0.2 cabal-install alex happy ncurses-dev git openssh-client make automake autoconf gcc perl python3 texinfo xz-utils
+ apt-get install -qy ghc-8.0.2 cabal-install-1.24 alex happy \
+ ncurses-dev git make automake autoconf gcc perl \
+ python3 texinfo xz-utils
cabal update
cabal install --reinstall hscolour
ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
+
+ echo 'HADDOCK_DOCS = NO' >> mk/build.mk
+ echo 'WERROR=' >> mk/build.mk
+ # https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
+ echo 'export PATH=/opt/ghc/bin:$PATH' >> $BASH_ENV
else
fail "TARGET=$target not supported"
fi
else
# assuming Ubuntu
- apt-get update -qq
- apt-get install -qy git openssh-client make automake autoconf gcc perl python3 texinfo xz-utils
+ apt-get install -qy git make automake autoconf gcc perl python3 texinfo xz-utils
cabal update
cabal install --reinstall hscolour
fi