|
22 | 22 | run: |
|
23 | 23 | mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
|
24 | 24 | -Dfmt.skip -DenableTestCoverage
|
25 |
| - # The `envVarTest` profile runs tests that require an environment variable |
26 |
| - - name: Env Var Tests |
27 |
| - run: | |
28 |
| - mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \ |
29 |
| - -Dfmt.skip -DenableTestCoverage -PenvVarTest |
30 |
| - # Set the Env Var for this step only |
31 |
| - env: |
32 |
| - GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com |
33 | 25 | - run: bazelisk version
|
34 | 26 | - name: Install Maven modules
|
35 | 27 | run: |
|
|
71 | 63 | - name: Unit Tests
|
72 | 64 | run: |
|
73 | 65 | mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
|
74 |
| - -Dfmt.skip -DenableTestCoverage |
75 |
| - # The `envVarTest` profile runs tests that require an environment variable |
76 |
| - - name: Env Var Tests |
77 |
| - run: | |
78 |
| - mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \ |
79 |
| - -Dfmt.skip -DenableTestCoverage -PenvVarTest |
80 |
| - # Set the Env Var for this step only |
81 |
| - env: |
82 |
| - GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com |
| 66 | +
|
83 | 67 | - run: bazelisk version
|
84 | 68 | - name: Install Maven modules
|
85 | 69 | run: |
|
@@ -111,25 +95,14 @@ jobs:
|
111 | 95 | export PATH=${JAVA_HOME}/bin:$PATH
|
112 | 96 | # Maven surefire plugin lets us to specify the JVM when running tests via
|
113 | 97 | # the "jvm" system property.
|
114 |
| - mvn verify --batch-mode --no-transfer-progress -Dcheckstyle.skip \ |
| 98 | + mvn org.apache.maven.plugins:maven-surefire-plugin:test \ |
| 99 | + verify \ |
| 100 | + --batch-mode \ |
| 101 | + --no-transfer-progress \ |
| 102 | + -Dcheckstyle.skip \ |
115 | 103 | -Dfmt.skip \
|
116 |
| - -Djvm="${JAVA8_HOME}/bin/java" |
117 |
| - # The `envVarTest` profile runs tests that require an environment variable |
118 |
| - - name: Compile with Java 17 and run tests with Java 8 (Env Var Tests) |
119 |
| - shell: bash |
120 |
| - run: | |
121 |
| - set -x |
122 |
| - export JAVA_HOME=$JAVA_HOME |
123 |
| - export PATH=${JAVA_HOME}/bin:$PATH |
124 |
| - # Maven surefire plugin lets us to specify the JVM when running tests via |
125 |
| - # the "jvm" system property. |
126 |
| - export GOOGLE_CLOUD_UNIVERSE_DOMAIN=random.com |
127 |
| - mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \ |
128 |
| - -Dfmt.skip -DenableTestCoverage -Dsurefire.failIfNoSpecifiedTests=false \ |
129 |
| - -PenvVarTest |
130 |
| - # Set the Env Var for this step only |
131 |
| - env: |
132 |
| - GOOGLE_CLOUD_UNIVERSE_DOMAIN: random.com |
| 104 | + -Djvm="${JAVA8_HOME}/bin/java" \ |
| 105 | + -DargLine="-Djava.util.logging.SimpleFormatter.format='%1$tY %1$tl:%1$tM:%1$tS.%1$tL %2$s %4$s: %5$s%6$s%n'" |
133 | 106 |
|
134 | 107 | build-java8-gapic-generator-java:
|
135 | 108 | name: "build(8) for gapic-generator-java"
|
|
0 commit comments