summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-11-29 10:22:50 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-29 10:23:44 -0500
commit3c0ffd11f0e949aca17fa32a925c2cfe33c0f109 (patch)
tree93e785c583c7e9341f45ba34f1b17e15da9a432c /.circleci
parent4c65867ace4b8d76d12dbfd03ee4d7df81385d30 (diff)
downloadhaskell-3c0ffd11f0e949aca17fa32a925c2cfe33c0f109.tar.gz
CircleCI: Freeze all packages at fixed index state
We will periodically bump this as necessary.
Diffstat (limited to '.circleci')
-rwxr-xr-x.circleci/prepare-system.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index c067a7847b..4b0218e63b 100755
--- a/.circleci/prepare-system.sh
+++ b/.circleci/prepare-system.sh
@@ -9,6 +9,7 @@ fail() {
echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk
echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk
+hackage_index_state="@1511758800"
cat > mk/build.mk <<EOF
V=1
@@ -30,7 +31,7 @@ case "$(uname)" in
ncurses-dev git make automake autoconf gcc perl \
python3 texinfo xz-utils lbzip2 patch
cabal update
- cabal install --reinstall hscolour==1.24.2
+ cabal install --reinstall hscolour --index-state=$hackage_index_state
ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
echo 'HADDOCK_DOCS = NO' >> mk/build.mk
@@ -44,7 +45,7 @@ case "$(uname)" in
# assuming Ubuntu
apt-get install -qy git make automake autoconf gcc perl python3 texinfo xz-utils lbzip2 patch
cabal update
- cabal install --reinstall hscolour
+ cabal install --reinstall hscolour --index-state=$hackage_index_state
fi
;;
Darwin)
@@ -53,7 +54,7 @@ case "$(uname)" in
fi
brew install ghc cabal-install python3 ncurses
cabal update
- cabal install --reinstall alex happy haddock hscolour
+ cabal install --reinstall alex happy haddock hscolour --index-state=$hackage_index_state
# put them on the $PATH, don't fail if already installed
ln -s $HOME/.cabal/bin/alex /usr/local/bin/alex || true
ln -s $HOME/.cabal/bin/happy /usr/local/bin/happy || true