forked from tensorflow/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yml
129 lines (114 loc) · 3.33 KB
/
cloudbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
steps:
# Install top-level deps.
- name: 'node:10'
entrypoint: 'yarn'
id: 'yarn'
args: ['install']
# Run find-affected-packages to find affected files in each folder.
- name: 'node:10'
entrypoint: 'yarn'
id: 'find-affected-packages'
args: ['find-affected-packages']
waitFor: ['yarn']
env:
- 'COMMIT_SHA=$COMMIT_SHA'
- 'BRANCH_NAME=$BRANCH_NAME'
- 'BASE_BRANCH=$_BASE_BRANCH'
# Core.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-core'
args: ['./scripts/run-build.sh', 'tfjs-core']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Converter.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-converter'
args: ['./scripts/run-build.sh', 'tfjs-converter']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Data.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-data'
args: ['./scripts/run-build.sh', 'tfjs-data']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Layers.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-layers'
args: ['./scripts/run-build.sh', 'tfjs-layers']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Union.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs'
args: ['./scripts/run-build.sh', 'tfjs']
waitFor: ['find-affected-packages']
# Vis.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-vis'
args: ['./scripts/run-build.sh', 'tfjs-vis']
waitFor: ['find-affected-packages']
# WebGPU.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-backend-webgpu'
args: ['./scripts/run-build.sh', 'tfjs-backend-webgpu']
waitFor: ['find-affected-packages']
# WASM.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-backend-wasm'
args: ['./scripts/run-build.sh', 'tfjs-backend-wasm']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# React Native.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-react-native'
args: ['./scripts/run-build.sh', 'tfjs-react-native']
waitFor: ['find-affected-packages']
# Node CPU.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-node'
args: ['./scripts/run-build.sh', 'tfjs-node']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Node GPU.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'tfjs-node-gpu'
args: ['./scripts/run-build.sh', 'tfjs-node-gpu']
waitFor: ['find-affected-packages']
env: ['NIGHTLY=$_NIGHTLY']
# Integration tests
- name: 'node:10'
dir: 'tfjs-core'
id: 'test-integration'
entrypoint: 'yarn'
args: ['test-integration']
waitFor: ['find-affected-packages']
env: ['BROWSERSTACK_USERNAME=deeplearnjs1', 'NIGHTLY=$_NIGHTLY']
secretEnv: ['BROWSERSTACK_KEY']
# Release notes test
- name: 'node:10'
id: 'test-monorepo'
entrypoint: 'yarn'
args: ['test-release-notes']
waitFor: ['yarn']
# General settings.
secrets:
- kmsKeyName: projects/learnjs-174218/locations/global/keyRings/tfjs/cryptoKeys/enc
secretEnv:
BROWSERSTACK_KEY: CiQAkwyoIW0LcnxymzotLwaH4udVTQFBEN4AEA5CA+a3+yflL2ASPQAD8BdZnGARf78MhH5T9rQqyz9HNODwVjVIj64CTkFlUCGrP1B2HX9LXHWHLmtKutEGTeFFX9XhuBzNExA=
timeout: 3600s
logsBucket: 'gs://tfjs-build-logs'
options:
logStreamingOption: 'STREAM_ON'
substitution_option: 'ALLOW_LOOSE'