forked from tensorflow/tfjs-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yml
116 lines (101 loc) · 2.74 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
steps:
- name: 'node:10'
entrypoint: 'yarn'
id: 'yarn'
args: ['install']
# Run diff to find modified files in each folder.
- name: 'node:10'
entrypoint: 'yarn'
id: 'diff'
args: ['diff']
waitFor: ['yarn']
env:
- 'COMMIT_SHA=$COMMIT_SHA'
- 'BRANCH_NAME=$BRANCH_NAME'
# Body pix.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'body-pix'
args: ['./scripts/run-build.sh', 'body-pix']
waitFor: ['diff']
# Coco SSD.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'coco-ssd'
args: ['./scripts/run-build.sh', 'coco-ssd']
waitFor: ['diff']
# Deeplab.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'deeplab'
args: ['./scripts/run-build.sh', 'deep-lab']
waitFor: ['diff']
# KNN Classifier.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'knn-classifier'
args: ['./scripts/run-build.sh', 'knn-classifier']
waitFor: ['diff']
# Mobilenet.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'mobilenet'
args: ['./scripts/run-build.sh', 'mobilenet']
waitFor: ['diff']
# Posenet.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'posenet'
args: ['./scripts/run-build.sh', 'posenet']
waitFor: ['diff']
# Speech commands.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'speech-commands'
args: ['./scripts/run-build.sh', 'speech-commands']
waitFor: ['diff']
# Toxicity.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'toxicity'
args: ['./scripts/run-build.sh', 'toxicity']
waitFor: ['diff']
# Universal sentence encoder.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'universal-sentence-encoder'
args: ['./scripts/run-build.sh', 'universal-sentence-encoder']
waitFor: ['diff']
# Handpose
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'handpose'
args: ['./scripts/run-build.sh', 'handpose']
waitFor: ['diff']
# Handpose
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
id: 'facemesh'
args: ['./scripts/run-build.sh', 'facemesh']
waitFor: ['diff']
# Run the top-level sanity checks.
- name: 'node:10'
entrypoint: 'yarn'
id: 'test'
args: ['presubmit']
waitFor: ['diff']
env: ['BROWSERSTACK_USERNAME=deeplearnjs1']
secretEnv: ['BROWSERSTACK_KEY']
- name: 'python:3.6'
entrypoint: 'bash'
args: ['./run_python_tests.sh']
waitFor: ['diff']
secrets:
- kmsKeyName: projects/learnjs-174218/locations/global/keyRings/tfjs/cryptoKeys/enc
secretEnv:
BROWSERSTACK_KEY: CiQAkwyoIW0LcnxymzotLwaH4udVTQFBEN4AEA5CA+a3+yflL2ASPQAD8BdZnGARf78MhH5T9rQqyz9HNODwVjVIj64CTkFlUCGrP1B2HX9LXHWHLmtKutEGTeFFX9XhuBzNExA=
timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
options:
logStreamingOption: 'STREAM_ON'
substitution_option: 'ALLOW_LOOSE'