Skip to content

Commit 6f9d239

Browse files
authored
Use maven's parallel mode to improve test time. Use 1 thread per core (#5449)
1 parent 4748868 commit 6f9d239

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.kokoro/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ if [[ "${SKIP_INTEGRATION_TESTS_IF_NO_CHANGES}" == "true" ]] &&
5151
fi
5252
fi
5353

54-
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V
54+
mvn install -B -V \
55+
-DskipTests=true \
56+
-Dmaven.javadoc.skip=true \
57+
-Dgcloud.download.skip=true \
58+
-T 1C
5559

5660
# prepend Kokoro root directory onto GOOGLE_APPLICATION_CREDENTIALS path
5761
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" ]]; then

.kokoro/release/publish_javadoc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pushd $(dirname "$0")/../../
3131
python3 -m pip install gcp-docuploader
3232

3333
# compile all packages
34-
mvn clean install -B -DskipTests=true
34+
mvn clean install -B -DskipTests=true -T 1C
3535

3636
build_and_publish_site() {
3737
DIRECTORY=$1
@@ -63,4 +63,4 @@ build_and_publish_site() {
6363

6464
# TODO (chingor): split all the artifacts
6565
build_and_publish_site google-api-grpc
66-
build_and_publish_site google-cloud-clients
66+
build_and_publish_site google-cloud-clients

0 commit comments

Comments
 (0)