[Git][ghc/ghc][wip/happy-1.20] ci.sh: Enforce minimum happy/alex versions
Ben Gamari
gitlab at gitlab.haskell.org
Wed Sep 2 19:16:55 UTC 2020
Ben Gamari pushed to branch wip/happy-1.20 at Glasgow Haskell Compiler / GHC
Commits:
02b64756 by Ben Gamari at 2020-09-02T15:16:47-04:00
ci.sh: Enforce minimum happy/alex versions
Also, always invoke cabal-install to ensure that happy/alex symlinks are
up-to-date.
- - - - -
1 changed file:
- .gitlab/ci.sh
Changes:
=====================================
.gitlab/ci.sh
=====================================
@@ -7,6 +7,8 @@ set -e -o pipefail
# Configuration:
hackage_index_state="2020-08-25T12:30:13Z"
+MIN_HAPPY_VERSION="1.20"
+MIN_ALEX_VERSION="3.2"
# Colors
BLACK="0;30"
@@ -256,17 +258,13 @@ function setup_toolchain() {
*) ;;
esac
- if [ ! -e "$HAPPY" ]; then
- info "Building happy..."
- cabal update
- $cabal_install happy
- fi
+ cabal update
- if [ ! -e "$ALEX" ]; then
- info "Building alex..."
- cabal update
- $cabal_install alex
- fi
+ info "Building happy..."
+ $cabal_install "happy>=$MIN_HAPPY_VERSION"
+
+ info "Building alex..."
+ $cabal_install "alex>=$MIN_ALEX_VERSION"
}
function cleanup_submodules() {
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/02b6475632d37b8b6ca0a4628248edcf498bdbfd
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/02b6475632d37b8b6ca0a4628248edcf498bdbfd
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200902/a9b97a14/attachment-0001.html>
More information about the ghc-commits
mailing list