File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,16 @@ integration)
69
69
RETURN_CODE=$?
70
70
;;
71
71
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} ]]
73
75
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}
75
82
mvn -B \
76
83
-Penable-samples \
77
84
-DtrimStackTrace=false \
Original file line number Diff line number Diff line change 4
4
"git": {
5
5
"name": ".",
6
6
"remote": "https://github.com/googleapis/google-http-java-client.git",
7
- "sha": "0c1d58b14a2b38cb2bce8d17c4b547261ab17739 "
7
+ "sha": "f4f68a43c33b0336239b0af3ac4e6c0746189821 "
8
8
}
9
9
},
10
10
{
11
11
"git": {
12
12
"name": "synthtool",
13
13
"remote": "https://github.com/googleapis/synthtool.git",
14
- "sha": "b65ef07d99946d23e900ef2cc490274a16edd336 "
14
+ "sha": "27e0e916cbfdb3d5ff6639b686cc04f78a0b0386 "
15
15
}
16
16
}
17
17
],
You can’t perform that action at this time.
0 commit comments