[Git][ghc/ghc][wip/lint-check-version-number] gitlab-ci: Ensure that version number has three components

Ben Gamari gitlab at gitlab.haskell.org
Sun Apr 7 20:45:13 UTC 2019



Ben Gamari pushed to branch wip/lint-check-version-number at Glasgow Haskell Compiler / GHC


Commits:
1dd72c10 by Ben Gamari at 2019-04-07T20:45:01Z
gitlab-ci: Ensure that version number has three components

- - - - -


2 changed files:

- .gitlab-ci.yml
- configure.ac


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -55,6 +55,9 @@ ghc-linters:
     - validate-whitespace .git $(git rev-list $base..$CI_COMMIT_SHA)
     - .gitlab/linters/check-makefiles.py $base $CI_COMMIT_SHA
     - .gitlab/linters/check-cpp.py $base $CI_COMMIT_SHA
+    - |
+      egrep -q '\[[0-9]+\.[0-9]+\.[0-9]+\]' configure.ac ||
+        ( echo "error: configure.ac: GHC version number must have three components."; exit 1 )
   dependencies: []
   tags:
     - lint


=====================================
configure.ac
=====================================
@@ -13,7 +13,7 @@ dnl
 # see what flags are available. (Better yet, read the documentation!)
 #
 
-AC_INIT([The Glorious Glasgow Haskell Compilation System], [8.9], [glasgow-haskell-bugs at haskell.org], [ghc-AC_PACKAGE_VERSION])
+AC_INIT([The Glorious Glasgow Haskell Compilation System], [8.9.0], [glasgow-haskell-bugs at haskell.org], [ghc-AC_PACKAGE_VERSION])
 
 # Set this to YES for a released version, otherwise NO
 : ${RELEASE=NO}



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1dd72c10df80c6ea7b68f69d4c4d2ff030331fdb

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1dd72c10df80c6ea7b68f69d4c4d2ff030331fdb
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/20190407/5e40a213/attachment.html>


More information about the ghc-commits mailing list