Skip to content
Merged
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
7 changes: 4 additions & 3 deletions internal/kokoro/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,18 @@ runPresubmitTests() {
--junitfile sponge_log.xml \
--format standard-verbose \
-- "${go_test_args[@]}" 2>&1 | tee sponge_log.log
exit_code=$(($exit_code + ${PIPESTATUS[0]}))

# Run integration tests against an emulator.
if [ -f "emulator_test.sh" ]; then
./emulator_test.sh
exit_code=$(($exit_code + $?))
fi
# Add the exit codes together so we exit non-zero if any module fails.
exit_code=$(($exit_code + $?))

if [[ $PWD != *"/internal/"* ]]; then
go build ./...
exit_code=$(($exit_code + $?))
fi
exit_code=$(($exit_code + $?))
}

SIGNIFICANT_CHANGES=$(git --no-pager diff --name-only origin/$KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH_google_cloud_go...$KOKORO_GIT_COMMIT_google_cloud_go |
Expand Down
Loading