-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
cloudbuild.yml
69 lines (61 loc) · 1.48 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
steps:
# Install common dependencies.
- name: 'gcr.io/learnjs-174218/release'
id: 'yarn-common'
entrypoint: 'yarn'
args: ['install']
# Install packages.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'yarn'
args: ['install']
waitFor: ['yarn-common']
# Build add-on.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'build-addon'
args: ['build-addon-from-source']
waitFor: ['yarn']
# Build deps.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'build-deps'
args: ['build-deps-ci']
waitFor: ['yarn-common']
# Build.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'build'
args: ['build-ci']
waitFor: ['yarn', 'build-deps']
# Lint.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'lint'
args: ['lint']
waitFor: ['yarn', 'build-deps']
# Unit tests.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'test'
args: ['test-ci']
waitFor: ['yarn', 'build-addon', 'build-deps', 'lint']
# CPU / GPU package alignment.
- name: 'gcr.io/learnjs-174218/release'
dir: 'tfjs-node'
entrypoint: 'yarn'
id: 'ensure-cpu-gpu-packages-align'
args: ['ensure-cpu-gpu-packages-align']
waitFor: ['yarn-common']
timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
options:
logStreamingOption: 'STREAM_ON'
machineType: 'N1_HIGHCPU_8'
substitution_option: 'ALLOW_LOOSE'