forked from distroinfinity/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yml
87 lines (75 loc) · 1.73 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
steps:
# Install common dependencies.
- name: 'node:10'
entrypoint: 'yarn'
id: 'yarn-common'
args: ['install']
# Install tfjs-converter dependencies.
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'yarn'
args: ['install']
waitFor: ['yarn-common']
# Build deps.
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'build-deps'
args: ['build-deps-ci']
waitFor: ['yarn-common']
# Build.
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'build'
args: ['build-ci']
waitFor: ['yarn', 'build-deps']
# Lint.
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'lint'
args: ['lint']
waitFor: ['yarn', 'build-deps']
# Run javascript tests.
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'test-js'
args: ['test-ci']
waitFor: ['yarn', 'build-deps', 'lint']
env: ['NIGHTLY=$_NIGHTLY']
# Run python tests.
- name: 'gcr.io/google-appengine/python'
dir: 'tfjs-converter/python'
entrypoint: 'bash'
id: 'test-python-pip'
args: ['./build-pip-package.sh', '--test', '/tmp/tfjs-pips']
waitFor: ['yarn-common']
- name: 'python:2'
dir: 'tfjs-converter/python'
entrypoint: 'bash'
id: 'test-python2'
args: ['./run-python-tests.sh']
waitFor: ['yarn-common']
- name: 'python:3.6'
dir: 'tfjs-converter/python'
entrypoint: 'bash'
id: 'test-python3.6'
args: ['./run-python-tests.sh']
waitFor: ['yarn-common']
- name: 'node:10'
dir: 'tfjs-converter'
entrypoint: 'yarn'
id: 'test-snippets'
args: ['test-snippets-ci']
waitFor: ['build']
timeout: 1800s
logsBucket: 'gs://tfjs-build-logs'
substitutions:
_NIGHTLY: ''
options:
logStreamingOption: 'STREAM_ON'
substitution_option: 'ALLOW_LOOSE'
machineType: 'N1_HIGHCPU_8'