forked from distroinfinity/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yml
61 lines (55 loc) · 1.38 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
steps:
# Install common dependencies.
- name: 'node:10'
id: 'yarn-common'
entrypoint: 'yarn'
args: ['install']
# Install packages.
- name: 'node:10'
dir: 'tfjs-backend-webgl'
id: 'yarn'
entrypoint: 'yarn'
args: ['install']
waitFor: ['yarn-common']
# Build deps.
- name: 'node:10'
dir: 'tfjs-backend-webgl'
id: 'build-deps'
entrypoint: 'yarn'
args: ['build-deps-ci']
waitFor: ['yarn-common']
# Build.
- name: 'node:10'
dir: 'tfjs-backend-webgl'
id: 'build'
entrypoint: 'yarn'
args: ['build-ci']
waitFor: ['yarn', build-deps]
# Lint.
- name: 'node:10'
dir: 'tfjs-backend-webgl'
id: 'lint'
entrypoint: 'yarn'
args: ['lint']
waitFor: ['yarn', 'build-deps']
# Run tests.
- name: 'node:10'
dir: 'tfjs-backend-webgl'
entrypoint: 'yarn'
id: 'test'
args: ['test-ci']
waitFor: ['yarn', 'build-deps', 'lint']
env: ['BROWSERSTACK_USERNAME=deeplearnjs1', 'NIGHTLY=$_NIGHTLY']
secretEnv: ['BROWSERSTACK_KEY']
# General configuration
secrets:
- kmsKeyName: projects/learnjs-174218/locations/global/keyRings/tfjs/cryptoKeys/enc
secretEnv:
BROWSERSTACK_KEY: CiQAkwyoIW0LcnxymzotLwaH4udVTQFBEN4AEA5CA+a3+yflL2ASPQAD8BdZnGARf78MhH5T9rQqyz9HNODwVjVIj64CTkFlUCGrP1B2HX9LXHWHLmtKutEGTeFFX9XhuBzNExA=
timeout: 3600s
logsBucket: 'gs://tfjs-build-logs'
substitutions:
_NIGHTLY: ''
options:
logStreamingOption: 'STREAM_ON'
substitution_option: 'ALLOW_LOOSE'