1
1
#! /bin/bash
2
- # Copyright 2019 Google LLC
2
+ # Copyright 2025 Google LLC
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
6
6
# You may obtain a copy of the License at
7
7
#
8
- # http ://www.apache.org/licenses/LICENSE-2.0
8
+ # https ://www.apache.org/licenses/LICENSE-2.0
9
9
#
10
10
# Unless required by applicable law or agreed to in writing, software
11
11
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -42,21 +42,22 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
42
42
export GOOGLE_APPLICATION_CREDENTIALS=$( realpath ${KOKORO_GFILE_DIR} /${GOOGLE_APPLICATION_CREDENTIALS} )
43
43
fi
44
44
45
+
45
46
RETURN_CODE=0
46
47
set +e
47
48
48
49
case ${JOB_TYPE} in
49
50
test)
50
51
echo " SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT} "
51
- mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT}
52
+ mvn test -B -ntp -Dfmt.skip=true - Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT}
52
53
RETURN_CODE=$?
53
54
;;
54
55
lint)
55
- mvn com.coveo :fmt-maven-plugin:check -B -ntp
56
+ mvn com.spotify.fmt :fmt-maven-plugin:check -B -ntp
56
57
RETURN_CODE=$?
57
58
;;
58
59
javadoc)
59
- mvn javadoc:javadoc javadoc:test-javadoc -B -ntp
60
+ mvn javadoc:javadoc javadoc:test-javadoc -B -ntp -Dfmt.skip=true
60
61
RETURN_CODE=$?
61
62
;;
62
63
integration)
@@ -78,18 +79,16 @@ integration)
78
79
-DtrimStackTrace=false \
79
80
-Dclirr.skip=true \
80
81
-Denforcer.skip=true \
82
+ -Dcheckstyle.skip=true \
83
+ -DskipUnitTests=true \
84
+ -Dfmt.skip=true \
81
85
-fae \
82
86
verify
83
87
RETURN_CODE=$?
84
88
;;
85
89
graalvm)
86
90
# Run Unit and Integration Tests with Native Image
87
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
88
- RETURN_CODE=$?
89
- ;;
90
- graalvm17)
91
- # Run Unit and Integration Tests with Native Image
92
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
91
+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
93
92
RETURN_CODE=$?
94
93
;;
95
94
samples)
@@ -113,6 +112,7 @@ samples)
113
112
-DtrimStackTrace=false \
114
113
-Dclirr.skip=true \
115
114
-Denforcer.skip=true \
115
+ -Dfmt.skip=true \
116
116
-fae \
117
117
verify
118
118
RETURN_CODE=$?
@@ -122,7 +122,7 @@ samples)
122
122
fi
123
123
;;
124
124
clirr)
125
- mvn -B -ntp -Denforcer.skip=true clirr:check
125
+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
126
126
RETURN_CODE=$?
127
127
;;
128
128
* )
0 commit comments