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)
@@ -66,18 +67,16 @@ integration)
66
67
-DtrimStackTrace=false \
67
68
-Dclirr.skip=true \
68
69
-Denforcer.skip=true \
70
+ -Dcheckstyle.skip=true \
71
+ -DskipUnitTests=true \
72
+ -Dfmt.skip=true \
69
73
-fae \
70
74
verify
71
75
RETURN_CODE=$?
72
76
;;
73
77
graalvm)
74
78
# Run Unit and Integration Tests with Native Image
75
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
76
- RETURN_CODE=$?
77
- ;;
78
- graalvm17)
79
- # Run Unit and Integration Tests with Native Image
80
- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
79
+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
81
80
RETURN_CODE=$?
82
81
;;
83
82
samples)
@@ -101,6 +100,7 @@ samples)
101
100
-DtrimStackTrace=false \
102
101
-Dclirr.skip=true \
103
102
-Denforcer.skip=true \
103
+ -Dfmt.skip=true \
104
104
-fae \
105
105
verify
106
106
RETURN_CODE=$?
@@ -110,7 +110,7 @@ samples)
110
110
fi
111
111
;;
112
112
clirr)
113
- mvn -B -ntp -Denforcer.skip=true clirr:check
113
+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
114
114
RETURN_CODE=$?
115
115
;;
116
116
* )
0 commit comments