Skip to content

Commit

Permalink
chore(ci scripts): use JVB_MVN_OPTS, upgrade bash-buddy
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Feb 18, 2022
1 parent 9551e52 commit 44034fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/bash-buddy
10 changes: 8 additions & 2 deletions scripts/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ source bash-buddy/lib/prepare_jdks.sh

source bash-buddy/lib/java_build_utils.sh

# shellcheck disable=SC2034
JVB_MVN_OPTS=(
"${JVB_DEFAULT_MVN_OPTS[@]}"
-DperformRelease -P'!gen-sign'
)

################################################################################
# ci build logic
################################################################################
Expand All @@ -35,7 +41,7 @@ prepare_jdks::switch_java_home_to_jdk "$default_build_jdk_version"

cu::head_line_echo "build and test with Java: $JAVA_HOME"

jvb::mvn_cmd -DperformRelease -P'!gen-sign' clean install
jvb::mvn_cmd clean install
(
cd auto-pipeline-examples
cu::log_then_run ./gradlew clean test
Expand All @@ -54,7 +60,7 @@ for jhome_var_name in "${JDK_HOME_VAR_NAMES[@]}"; do
cu::head_line_echo "test with Java: $JAVA_HOME"

# just test without build
jvb::mvn_cmd -DperformRelease -P'!gen-sign' surefire:test
jvb::mvn_cmd surefire:test
(
cd auto-pipeline-examples
cu::log_then_run ./gradlew clean test
Expand Down

0 comments on commit 44034fb

Please sign in to comment.