|
1 | | -presubmits: |
2 | | -- name: test-core-and-ingestion |
3 | | - decorate: true |
4 | | - spec: |
5 | | - containers: |
6 | | - - image: maven:3.6-jdk-11 |
7 | | - command: ["infra/scripts/test-java-core-ingestion.sh"] |
8 | | - resources: |
9 | | - requests: |
10 | | - cpu: "2000m" |
11 | | - memory: "1536Mi" |
12 | | - skip_branches: |
13 | | - - ^v0\.(3|4)-branch$ |
14 | | - |
15 | | -- name: test-core-and-ingestion-java-8 |
16 | | - decorate: true |
17 | | - always_run: true |
18 | | - spec: |
19 | | - containers: |
20 | | - - image: maven:3.6-jdk-8 |
21 | | - command: ["infra/scripts/test-java-core-ingestion.sh"] |
22 | | - resources: |
23 | | - requests: |
24 | | - cpu: "2000m" |
25 | | - memory: "1536Mi" |
26 | | - branches: |
27 | | - - ^v0\.(3|4)-branch$ |
28 | | - |
29 | | -- name: test-serving |
30 | | - decorate: true |
31 | | - spec: |
32 | | - containers: |
33 | | - - image: maven:3.6-jdk-11 |
34 | | - command: ["infra/scripts/test-java-serving.sh"] |
35 | | - skip_branches: |
36 | | - - ^v0\.(3|4)-branch$ |
37 | | - |
38 | | -- name: test-serving-java-8 |
39 | | - decorate: true |
40 | | - always_run: true |
41 | | - spec: |
42 | | - containers: |
43 | | - - image: maven:3.6-jdk-8 |
44 | | - command: ["infra/scripts/test-java-serving.sh"] |
45 | | - branches: |
46 | | - - ^v0\.(3|4)-branch$ |
47 | | - |
48 | | -- name: test-java-sdk |
49 | | - decorate: true |
50 | | - spec: |
51 | | - containers: |
52 | | - - image: maven:3.6-jdk-11 |
53 | | - command: ["infra/scripts/test-java-sdk.sh"] |
54 | | - skip_branches: |
55 | | - - ^v0\.(3|4)-branch$ |
56 | | - |
57 | | -- name: test-java-sdk-java-8 |
58 | | - decorate: true |
59 | | - always_run: true |
60 | | - spec: |
61 | | - containers: |
62 | | - - image: maven:3.6-jdk-8 |
63 | | - command: ["infra/scripts/test-java-sdk.sh"] |
64 | | - branches: |
65 | | - - ^v0\.(3|4)-branch$ |
66 | | - |
67 | | -- name: test-golang-sdk |
68 | | - decorate: true |
69 | | - spec: |
70 | | - containers: |
71 | | - - image: golang:1.13 |
72 | | - command: ["infra/scripts/test-golang-sdk.sh"] |
73 | | - |
74 | 1 | postsubmits: |
75 | | -- name: publish-python-sdk |
76 | | - decorate: true |
77 | | - spec: |
78 | | - containers: |
79 | | - - image: python:3 |
80 | | - command: |
81 | | - - sh |
82 | | - - -c |
83 | | - - | |
84 | | - make package-protos && make compile-protos-python && infra/scripts/publish-python-sdk.sh \ |
85 | | - --directory-path sdk/python --repository pypi |
86 | | - volumeMounts: |
87 | | - - name: pypirc |
88 | | - mountPath: /root/.pypirc |
89 | | - subPath: .pypirc |
90 | | - readOnly: true |
91 | | - volumes: |
92 | | - - name: pypirc |
93 | | - secret: |
94 | | - secretName: pypirc |
95 | | - branches: |
96 | | - # Filter on tags with semantic versioning, prefixed with "v" |
97 | | - # https://github.com/semver/semver/issues/232 |
98 | | - - ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$ |
99 | | - |
100 | 2 | - name: publish-java-sdk |
101 | 3 | decorate: true |
102 | 4 | spec: |
@@ -128,31 +30,3 @@ postsubmits: |
128 | 30 | branches: |
129 | 31 | # Filter on tags with semantic versioning, prefixed with "v". |
130 | 32 | - ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$ |
131 | | - |
132 | | -- name: publish-java-8-sdk |
133 | | - decorate: true |
134 | | - spec: |
135 | | - containers: |
136 | | - - image: maven:3.6-jdk-8 |
137 | | - command: |
138 | | - - bash |
139 | | - - -c |
140 | | - - infra/scripts/publish-java-sdk.sh --revision ${PULL_BASE_REF:1} |
141 | | - volumeMounts: |
142 | | - - name: gpg-keys |
143 | | - mountPath: /etc/gpg |
144 | | - readOnly: true |
145 | | - - name: maven-settings |
146 | | - mountPath: /root/.m2/settings.xml |
147 | | - subPath: settings.xml |
148 | | - readOnly: true |
149 | | - volumes: |
150 | | - - name: gpg-keys |
151 | | - secret: |
152 | | - secretName: gpg-keys |
153 | | - - name: maven-settings |
154 | | - secret: |
155 | | - secretName: maven-settings |
156 | | - branches: |
157 | | - # Filter on tags with semantic versioning, prefixed with "v". v0.3 and v0.4 only. |
158 | | - - ^v0\.(3|4)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$ |
0 commit comments