Skip to content

Commit

Permalink
ci(java): restrict presubmit samples ITs to only snapshot (googleapis…
Browse files Browse the repository at this point in the history
…#270)

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/106b5589-a66c-431d-bd36-ecff5aa361a3/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 26d45d0 commit 2755823
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions java-resourcemanager/.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 java-resourcemanager/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/java-resourcemanager.git",
"sha": "3a2d4890e2b80f6c69cd0aca7f642a9c5cd05a16"
"sha": "513b5e9b7ae05c936cd57a01d3a7f836002734ed"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
"sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386"
}
}
],
Expand Down

0 comments on commit 2755823

Please sign in to comment.