Commit 3c0ffd11 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

CircleCI: Freeze all packages at fixed index state

We will periodically bump this as necessary.
parent 4c65867a
...@@ -9,6 +9,7 @@ fail() { ...@@ -9,6 +9,7 @@ fail() {
echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk
echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk
hackage_index_state="@1511758800"
cat > mk/build.mk <<EOF cat > mk/build.mk <<EOF
V=1 V=1
...@@ -30,7 +31,7 @@ case "$(uname)" in ...@@ -30,7 +31,7 @@ case "$(uname)" in
ncurses-dev git make automake autoconf gcc perl \ ncurses-dev git make automake autoconf gcc perl \
python3 texinfo xz-utils lbzip2 patch python3 texinfo xz-utils lbzip2 patch
cabal update 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 ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
echo 'HADDOCK_DOCS = NO' >> mk/build.mk echo 'HADDOCK_DOCS = NO' >> mk/build.mk
...@@ -44,7 +45,7 @@ case "$(uname)" in ...@@ -44,7 +45,7 @@ case "$(uname)" in
# assuming Ubuntu # assuming Ubuntu
apt-get install -qy git make automake autoconf gcc perl python3 texinfo xz-utils lbzip2 patch apt-get install -qy git make automake autoconf gcc perl python3 texinfo xz-utils lbzip2 patch
cabal update cabal update
cabal install --reinstall hscolour cabal install --reinstall hscolour --index-state=$hackage_index_state
fi fi
;; ;;
Darwin) Darwin)
...@@ -53,7 +54,7 @@ case "$(uname)" in ...@@ -53,7 +54,7 @@ case "$(uname)" in
fi fi
brew install ghc cabal-install python3 ncurses brew install ghc cabal-install python3 ncurses
cabal update 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 # 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/alex /usr/local/bin/alex || true
ln -s $HOME/.cabal/bin/happy /usr/local/bin/happy || true ln -s $HOME/.cabal/bin/happy /usr/local/bin/happy || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment