You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2017/09/27 17:53:10 UTC
svn commit: r22012 - /dev/jackrabbit/check-release.sh
Author: reschke
Date: Wed Sep 27 17:53:10 2017
New Revision: 22012
Log:
OAK-6728: check-release script should run integration tests
a) The profile used is displayed when mvn is run
b) The profile to be used can be overridden using the RUN_PROFILES environment variable
c) On success, script displays versions of Maven, platform, and Java
Modified:
dev/jackrabbit/check-release.sh
Modified: dev/jackrabbit/check-release.sh
==============================================================================
--- dev/jackrabbit/check-release.sh (original)
+++ dev/jackrabbit/check-release.sh Wed Sep 27 17:53:10 2017
@@ -18,8 +18,12 @@
##
BASEDIR="`dirname "$0"`"
+DEFAULT_PROFILES="pedantic"
+PROFILES=${RUN_PROFILES:-$DEFAULT_PROFILES}
+
if [ -z "$1" -o -z "$1" ]; then
echo "Usage: $0 [component] version checksum"
+ echo "(use \$RUN_PROFILES to override default profile of $DEFAULT_PROFILES)"
exit 1
elif [ -z "$3" ]; then
COMPONENT=""
@@ -147,16 +151,20 @@ fi
info ""
info "6. Build the release candidate"
info ""
-info " Running the Maven build..."
+info " Running the Maven build: mvn verify -P $PROFILES"
info ""
-if (cd $ZIPDIR; exec mvn verify -Ppedantic) 2>> "$LOGFILE" 1>&2; then
- info " OK: mvn verify -Ppedantic"
+if (cd $ZIPDIR; exec mvn verify -P "$PROFILES") 2>> "$LOGFILE" 1>&2; then
+ info " OK: mvn verify -P $PROFILES"
else
- error " NOT OK: mvn verify -Ppedantic"
+ error " NOT OK: mvn verify -P $PROFILES"
fi
info ""
info "------------------------------------------------------------------------"
+info "$(mvn --version|grep -i -e 'Apache Maven')"
+info "$(mvn --version|grep -i -e 'OS name:')"
+info "$(mvn --version|grep -i -e 'Java version:')"
+info "------------------------------------------------------------------------"
info "ALL CHECKS OK "
info "------------------------------------------------------------------------"
exit 0