Skip to content

Commit

Permalink
ci(java): restrict presubmit samples ITs to only snapshot (#547)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/dc44c73a-e60a-4f22-9d87-3a3f6d9d4115/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@27e0e91
  • Loading branch information
yoshi-automation authored Oct 15, 2020
1 parent fb2bec8 commit 6723336
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,16 @@ 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
pushd samples
SAMPLES_DIR=samples/snapshot
fi

if [[ -f ${SAMPLES_DIR}/pom.xml ]]
then
pushd {SAMPLES_DIR}
mvn -B \
-Penable-samples \
-DtrimStackTrace=false \
Expand Down
4 changes: 2 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-oauth-java-client.git",
"sha": "ef4305bd8ef00890effdeb157b2f9c7929566664"
"sha": "fb2bec83cff3885cec73d21b814ec41e918287f8"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
"sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386"
}
}
],
Expand Down

0 comments on commit 6723336

Please sign in to comment.