blob: a84ae1a780c0167932de9a1435a1f1f44a6df49c [file] [log] [blame]
#!/bin/bash
BASEDIR=$(dirname $0)
. $BASEDIR/_functions.sh
function usage {
cat << EOF
${PRG} [-h] -r <RELEASE>
-h - Usage info
Example: ${PRG} -f <module>
EOF
}
function get_options {
# Loop until all parameters are used up
while [ "$1" != "" ]; do
case $1 in
-h | --help ) usage
exit 7
;;
* ) break;;
esac
shift
done
_MAVEN_OPTS="$_MAVEN_OPTS $@"
}
get_options $*
_MAVEN_OPTS="$_MAVEN_OPTS -e -B"
# Parallel executions of maven modules and tests.
# Half of CPU core are used in to keep other half for OS and other programs.
mvn clean install site:site site:stage -T0.5C -Dmaster_unitTest_skip=true -Dmaster_webTest_skip=true -Dmaster_coverage_skip=true -Dmaster_sanityCheck_skip=true -Dmaster_coverage_skip=true -Dmaster_flatten_skip=true -f org.eclipse.scout.rt $_MAVEN_OPTS