Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 64730ea

Browse files
ci(java): restrict presubmit samples ITs to only snapshot (#313)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9000f390-5830-4388-9df6-3b2001b2e111/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@27e0e91
1 parent 25356f9 commit 64730ea

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.kokoro/build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ integration)
6969
RETURN_CODE=$?
7070
;;
7171
samples)
72-
if [[ -f samples/pom.xml ]]
72+
SAMPLES_DIR=samples
73+
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
74+
if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]]
7375
then
74-
pushd samples
76+
SAMPLES_DIR=samples/snapshot
77+
fi
78+
79+
if [[ -f ${SAMPLES_DIR}/pom.xml ]]
80+
then
81+
pushd {SAMPLES_DIR}
7582
mvn -B \
7683
-Penable-samples \
7784
-DtrimStackTrace=false \

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-speech.git",
7-
"sha": "ec39a79abfb32de7577a6b5116d457283c7f7f6b"
7+
"sha": "1f110623b5a338a0b2964360a834cd020657e207"
88
}
99
},
1010
{
@@ -27,7 +27,7 @@
2727
"git": {
2828
"name": "synthtool",
2929
"remote": "https://github.com/googleapis/synthtool.git",
30-
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
30+
"sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386"
3131
}
3232
}
3333
],

0 commit comments

Comments
 (0)