Skip to content

test: option to run integration tests with modified dependencies #2561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
fi

# TODO: We have to figure out how to pass this version
if [ -z "${INTEGRATION_TEST_ARGS}" ];then
INTEGRATION_TEST_ARGS="-V"
fi
# maven.main.skip skips recompiling the project with modified dependency versions. This
# makes the build similar to users' environment where they would upgrade their dependencies
# (without recompiling Cloud Java libraries).
INTEGRATION_TEST_ARGS="${INTEGRATION_TEST_ARGS} -Dmaven.main.skip -Dgrpc.version=1.72.0 -Dprotobuf.version=4.31.0-RC1"
echo "Start dependency tree of modified dependencies by: ${INTEGRATION_TEST_ARGS}"
mvn -B -ntp dependency:tree ${INTEGRATION_TEST_ARGS}
echo "End of dependency tree"
echo

RETURN_CODE=0
set +e

Expand Down
Loading