From f51111d0f3d5c5163d74181dc53b4d03c17db4d3 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 21 Nov 2019 14:29:54 +0100 Subject: [PATCH] CI: Make string-freeze checking part of release process --- ci/RELEASE.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ci/RELEASE.sh b/ci/RELEASE.sh index f79b0ed4a..b3c6592b1 100755 --- a/ci/RELEASE.sh +++ b/ci/RELEASE.sh @@ -17,10 +17,13 @@ # * pulling translations # * updating the language list # * switching to the right branch +# The release can fail for various reasons: doesn't build, tests fail, +# or the string freeze has been violated. # # You can influence the script a little with these options: # * `-B` do not build (before tagging) # * `-P` do not package (tag, sign, tarball) +# * `-T` do not respect string freeze # # The build / package settings can be influenced via environment variables: # * BUILD_DEFAULT set to `false` to avoid first build with gcc @@ -37,8 +40,9 @@ which cmake > /dev/null 2>&1 || { echo "No cmake(1) available." ; exit 1 ; } test -z "$BUILD_DEFAULT" && BUILD_DEFAULT=true test -z "$BUILD_CLANG" && BUILD_CLANG=true test -z "$BUILD_ONLY" && BUILD_ONLY=false +STRING_FREEZE=true -while getopts "hBP" opt ; do +while getopts "hBPT" opt ; do case "$opt" in h|\?) sed -e '1,/USAGE/d' -e '/END.USAGE/,$d' < "$0" @@ -51,10 +55,17 @@ while getopts "hBP" opt ; do P) BUILD_ONLY=true ;; + T) + STRING_FREEZE=false + ;; esac done +if $STRING_FREEZE ; then + sh ci/txcheck.sh || { echo "! String freeze failed." ; exit 1 ; } +fi + ### Setup # #