chore(build): add --skip-tests for release command
@@ -30,6 +30,7 @@ release::usage() {
to the git remote to which the currently checked out branch is attached to.
Works only when on a branch, not when checked out directly.
--log <log-file> Write full log to <log-file>, only print progress to screen
+ --skip-tests Do not run tests
EOT
}
@@ -435,6 +436,10 @@ extract_maven_opts() {
maven_opts="$maven_opts -s $settings_xml"
fi
+ if [ $(hasflag --skip-tests) ]; then
+ maven_opts="$maven_opts -DskipTests -DskipITs"
+ fi
+
echo $maven_opts
}
