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

Commit e15d4f4

Browse files
ci(java): restrict presubmit samples ITs to only snapshot (#281)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/fbbe40e0-e2ab-4acf-9ad7-1fe4653b43d5/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@27e0e91
1 parent 5e045cc commit e15d4f4

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-datalabeling.git",
7-
"sha": "1e957ec1d7c01ce58aa6459a01ebbc068d8fc4eb"
7+
"sha": "897895cf7f6fbc0f5e1a01a70ea38263d78ef75f"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "b65ef07d99946d23e900ef2cc490274a16edd336"
22+
"sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)