Skip to content

Commit

Permalink
chore: Run GraalVM ITs with terraform (#8808)
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 authored and alicejli committed Nov 18, 2022
1 parent 41274e5 commit 6339143
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ case ${JOB_TYPE} in
generate_graalvm_modules_list
if [ ! -z "${module_list}" ]; then
printf "Running GraalVM checks for:\n%s\n" "${module_list}"
setup_cloud "$module_list"
install_modules
run_graalvm_tests
run_graalvm_tests "$module_list"
else
echo "Not running GraalVM checks -- No changes in relevant modules"
fi
Expand All @@ -111,8 +112,9 @@ case ${JOB_TYPE} in
generate_graalvm_modules_list
if [ ! -z "${module_list}" ]; then
printf "Running GraalVM 17 checks for:\n%s\n" "${module_list}"
setup_cloud "$module_list"
install_modules
run_graalvm_tests
run_graalvm_tests "$module_list"
else
echo "Not running GraalVM 17 checks -- No changes in relevant modules"
fi
Expand Down
6 changes: 3 additions & 3 deletions .kokoro/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ function run_integration_tests() {
}

function run_graalvm_tests() {
printf "Running GraalVM ITs on:\n%s\n" "${module_list[*]}"
printf "Running GraalVM ITs on:\n%s\n" "$1"

mvn -B ${INTEGRATION_TEST_ARGS} \
-pl "${module_list}" \
-pl "$1" \
-amd \
-ntp \
-DtrimStackTrace=false \
Expand All @@ -141,7 +141,7 @@ function run_graalvm_tests() {
test

RETURN_CODE=$?
printf "Finished Unit and Integration Tests for GraalVM:\n%s\n" "${module_list}"
printf "Finished Unit and Integration Tests for GraalVM:\n%s\n" "$1"
}

function generate_graalvm_modules_list() {
Expand Down

0 comments on commit 6339143

Please sign in to comment.