diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-04-07 15:13:49 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-12 13:23:30 -0400 |
commit | e05df3e1380989ca00ecd88b6d7d0f4aec5502fb (patch) | |
tree | 865c89d7d715ea6226910825e6c5a238f507c1f7 | |
parent | beaa07d204a779cc509985765a87da95faefb359 (diff) | |
download | haskell-e05df3e1380989ca00ecd88b6d7d0f4aec5502fb.tar.gz |
gitlab-ci: Ensure that version number has three components
-rw-r--r-- | .gitlab-ci.yml | 1 | ||||
-rwxr-xr-x | .gitlab/linters/check-version-number.sh | 6 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 414f8d07e5..6e8d50d5aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,7 @@ 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 + - .gitlab/linters/check-version-number.sh dependencies: [] tags: - lint diff --git a/.gitlab/linters/check-version-number.sh b/.gitlab/linters/check-version-number.sh new file mode 100755 index 0000000000..e1869d097e --- /dev/null +++ b/.gitlab/linters/check-version-number.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +grep -e -q '\[[0-9]+\.[0-9]+\.[0-9]+\]' configure.ac || + ( echo "error: configure.ac: GHC version number must have three components."; exit 1 ) diff --git a/configure.ac b/configure.ac index d1091e0261..6457873715 100644 --- a/configure.ac +++ b/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@haskell.org], [ghc-AC_PACKAGE_VERSION]) +AC_INIT([The Glorious Glasgow Haskell Compilation System], [8.9.0], [glasgow-haskell-bugs@haskell.org], [ghc-AC_PACKAGE_VERSION]) # Set this to YES for a released version, otherwise NO : ${RELEASE=NO} |