[Git][ghc/ghc][wip/happy-1.20] ci.sh: Enforce minimum happy/alex versions

Ben Gamari gitlab at gitlab.haskell.org
Wed Sep 2 21:46:47 UTC 2020



Ben Gamari pushed to branch wip/happy-1.20 at Glasgow Haskell Compiler / GHC


Commits:
84f48794 by Ben Gamari at 2020-09-02T17:46:33-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 --constraint="happy>=$MIN_HAPPY_VERSION"
+
+  info "Building alex..."
+  $cabal_install alex --constraint="alex>=$MIN_ALEX_VERSION"
 }
 
 function cleanup_submodules() {



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/84f4879416b5d27b110d5abb58f8a692e6a92d7a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/84f4879416b5d27b110d5abb58f8a692e6a92d7a
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/b21f8477/attachment-0001.html>


More information about the ghc-commits mailing list