Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
ci: restrict presubmit samples ITs to only snapshot (#422)
Browse files Browse the repository at this point in the history
to address incessant quota issues
  • Loading branch information
stephaniewang526 committed Oct 12, 2020
1 parent 310122b commit 963c207
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .kokoro/build.sh
Expand Up @@ -69,14 +69,21 @@ integration)
RETURN_CODE=$?
;;
samples)
if [[ -f samples/pom.xml ]]
SAMPLES_DIR=samples
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]]
then
SAMPLES_DIR=samples/snapshot
fi

if [[ -f ${SAMPLES_DIR}/pom.xml ]]
then
if [ -f "${KOKORO_GFILE_DIR}/secret_manager/java-bigquerydatatransfer-samples-secrets" ]
then
source "${KOKORO_GFILE_DIR}/secret_manager/java-bigquerydatatransfer-samples-secrets"
fi

pushd samples
pushd ${SAMPLES_DIR}
mvn -B \
-Penable-samples \
-DtrimStackTrace=false \
Expand Down

0 comments on commit 963c207

Please sign in to comment.