This repository was archived by the owner on Sep 19, 2023. It is now read-only.
File tree
Expand file treeCollapse file tree8 files changed
+65
-23
lines changed Expand file treeCollapse file tree8 files changed
+65
-23
lines changed Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +docker: |
| 2 | +image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest |
| 3 | +digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 |
Original file line number | Diff line number | Diff line change |
---|
|
| 1 | + |
| 2 | + |
| 3 | +# Copyright 2021 Google LLC |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +docker: |
| 18 | +image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" |
Original file line number | Diff line number | Diff line change |
---|
|
8 | 8 | units:
|
9 | 9 | runs-on: ubuntu-latest
|
10 | 10 | strategy:
|
| 11 | +fail-fast: false |
11 | 12 | matrix:
|
12 | 13 | java: [8, 11, 17]
|
13 | 14 | steps:
|
14 | 15 | - uses: actions/checkout@v2
|
15 |
| -- uses: stCarolas/setup-maven@v4 |
16 |
| -with: |
17 |
| -maven-version: 3.8.1 |
18 | 16 | - uses: actions/setup-java@v2
|
19 | 17 | with:
|
20 | 18 | distribution: zulu
|
|
27 | 25 | runs-on: windows-latest
|
28 | 26 | steps:
|
29 | 27 | - uses: actions/checkout@v2
|
30 |
| -- uses: stCarolas/setup-maven@v4 |
31 |
| -with: |
32 |
| -maven-version: 3.8.1 |
33 | 28 | - uses: actions/setup-java@v2
|
34 | 29 | with:
|
35 | 30 | distribution: zulu
|
|
45 | 40 | java: [8, 11, 17]
|
46 | 41 | steps:
|
47 | 42 | - uses: actions/checkout@v2
|
48 |
| -- uses: stCarolas/setup-maven@v4 |
49 |
| -with: |
50 |
| -maven-version: 3.8.1 |
51 | 43 | - uses: actions/setup-java@v2
|
52 | 44 | with:
|
53 | 45 | distribution: zulu
|
@@ -58,13 +50,10 @@ jobs:
|
58 | 50 | runs-on: ubuntu-latest
|
59 | 51 | steps:
|
60 | 52 | - uses: actions/checkout@v2
|
61 |
| -- uses: stCarolas/setup-maven@v4 |
62 |
| -with: |
63 |
| -maven-version: 3.8.1 |
64 | 53 | - uses: actions/setup-java@v2
|
65 | 54 | with:
|
66 | 55 | distribution: zulu
|
67 |
| -java-version: 8 |
| 56 | +java-version: 11 |
68 | 57 | - run: java -version
|
69 | 58 | - run: .kokoro/build.sh
|
70 | 59 | env:
|
|
73 | 62 | runs-on: ubuntu-latest
|
74 | 63 | steps:
|
75 | 64 | - uses: actions/checkout@v2
|
76 |
| -- uses: stCarolas/setup-maven@v4 |
77 |
| -with: |
78 |
| -maven-version: 3.8.1 |
79 | 65 | - uses: actions/setup-java@v2
|
80 | 66 | with:
|
81 | 67 | distribution: zulu
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -69,6 +69,11 @@ integration)
|
69 | 69 | verify
|
70 | 70 | RETURN_CODE=$?
|
71 | 71 | ;;
|
| 72 | +graalvm) |
| 73 | +# Run Unit and Integration Tests with Native Image |
| 74 | +mvn test -Pnative -Penable-integration-tests |
| 75 | +RETURN_CODE=$? |
| 76 | +;; |
72 | 77 | samples)
|
73 | 78 | SAMPLES_DIR=samples
|
74 | 79 | # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -37,6 +37,7 @@ function determineMavenOpts() {
|
37 | 37 | | sed -E 's/^.*"(.*?)".*$/\1/g' \
|
38 | 38 | | sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
|
39 | 39 | )
|
| 40 | + |
40 | 41 | if [[ $javaVersion == 17* ]]
|
41 | 42 | then
|
42 | 43 | # MaxPermSize is no longer supported as of jdk 17
|
|
Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +# Format: //devtools/kokoro/config/proto/build.proto |
| 2 | + |
| 3 | +# Configure the docker image for kokoro-trampoline. |
| 4 | +env_vars: { |
| 5 | +key: "TRAMPOLINE_IMAGE" |
| 6 | +value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" |
| 7 | +} |
| 8 | + |
| 9 | +env_vars: { |
| 10 | +key: "JOB_TYPE" |
| 11 | +value: "graalvm" |
| 12 | +} |
| 13 | + |
| 14 | +# TODO: remove this after we've migrated all tests and scripts |
| 15 | +env_vars: { |
| 16 | +key: "GCLOUD_PROJECT" |
| 17 | +value: "gcloud-devel" |
| 18 | +} |
| 19 | + |
| 20 | +env_vars: { |
| 21 | +key: "GOOGLE_CLOUD_PROJECT" |
| 22 | +value: "gcloud-devel" |
| 23 | +} |
| 24 | + |
| 25 | +env_vars: { |
| 26 | +key: "GOOGLE_APPLICATION_CREDENTIALS" |
| 27 | +value: "secret_manager/java-it-service-account" |
| 28 | +} |
| 29 | + |
| 30 | +env_vars: { |
| 31 | +key: "SECRET_MANAGER_KEYS" |
| 32 | +value: "java-it-service-account" |
| 33 | +} |
Original file line number | Diff line number | Diff line change |
---|
@@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true
|
36 | 36 | export NAME=google-cloud-shared-dependencies
|
37 | 37 | export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
|
38 | 38 |
|
39 |
| -# V3 generates docfx yml from javadoc |
40 |
| -# generate yml |
41 |
| -mvn clean site -B -q -P docFX |
42 |
| - |
43 |
| -# copy README to docfx-yml dir and rename index.md |
44 |
| -cp README.md target/docfx-yml/index.md |
45 |
| -# copy CHANGELOG to docfx-yml dir and rename history.md |
| 39 | +# cloud RAD generation |
| 40 | +mvn clean javadoc:aggregate -B -q -P docFX |
| 41 | +# include CHANGELOG |
46 | 42 | cp CHANGELOG.md target/docfx-yml/history.md
|
47 | 43 |
|
48 | 44 | pushd target/docfx-yml
|
|
File renamed without changes.
You can’t perform that action at this time.
0 commit comments