File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414steps :
1515 - id : run integration tests
16- name : maven:${_MAVEN_VERSION}
16+ name : azul/zulu-openjdk:17
1717 entrypoint : bash
1818 env :
1919 - " IP_TYPE=${_IP_TYPE}"
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515
1616# `-e` enables the script to automatically fail when a command fails
17- set -e
17+ set -ex
18+
19+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
20+ PROJECT_DIR=$( dirname " $SCRIPT_DIR " )
1821
1922if [[ $OSTYPE == ' darwin' * ]]; then
2023 # Add alias for 127.0.0.2 to be used as a loopback address
@@ -27,7 +30,14 @@ echo -e "******************** Running tests... ********************\n"
2730echo " Running tests using Java:"
2831java -version
2932
30- echo " Maven version: $( mvn --version) "
33+ # Use the mvn command
34+ if which mvn ; then
35+ mvn_cmd=" mvn"
36+ else
37+ mvn_cmd=" $PROJECT_DIR /mvnw"
38+ fi
39+
40+ echo " Maven version: $( $mvn_cmd --version) "
3141
3242echo " Job type: ${JOB_TYPE} "
3343
@@ -36,11 +46,11 @@ set +e
3646
3747case ${JOB_TYPE} in
3848test)
39- mvn -e -B clean -ntp test -P coverage -Dcheckstyle.skip
49+ $mvn_cmd -e -B clean -ntp test -P coverage -Dcheckstyle.skip
4050 RETURN_CODE=$?
4151 ;;
4252integration)
43- mvn -e -B clean -ntp verify -P e2e -P coverage -Dcheckstyle.skip
53+ $mvn_cmd -e -B clean -ntp verify -P e2e -P coverage -Dcheckstyle.skip
4454 RETURN_CODE=$?
4555 ;;
4656esac
You can’t perform that action at this time.
0 commit comments