forked from GoogleCloudPlatform/python-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
41 lines (41 loc) · 2.04 KB
/
cloudbuild.yaml
File metadata and controls
41 lines (41 loc) · 2.04 KB
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
timeout: 7200s
steps:
- # Compile Python interpreters from source
name: gcr.io/cloud-builders/docker:latest
args: ['build', '--tag=${_DOCKER_NAMESPACE}/python/interpreter-builder:${_TAG}',
'--no-cache', '/workspace/python-interpreter-builder/']
- # Copy interpreters back to workspace
name: ${_DOCKER_NAMESPACE}/python/interpreter-builder:${_TAG}
args: ['cp', '/interpreters.tar.gz', '/workspace/runtime-image/interpreters.tar.gz']
- # Build base runtime image
name: gcr.io/cloud-builders/docker:latest
args: ['build', '--tag=${_DOCKER_NAMESPACE}/python:${_TAG}',
'--no-cache', '/workspace/runtime-image/']
- # Validate structure of base runtime image
name: gcr.io/gcp-runtimes/structure_test:latest
args: [
'-i', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'--config', '/workspace/tests/virtualenv/virtualenv_default.yaml',
'--config', '/workspace/tests/virtualenv/virtualenv_python34.yaml',
'--config', '/workspace/tests/virtualenv/virtualenv_python35.yaml',
'--config', '/workspace/tests/virtualenv/virtualenv_python36.yaml',
'--config', '/workspace/tests/no-virtualenv/no-virtualenv.yaml',
'--config', '/workspace/tests/python2-libraries/python2-libraries.yaml',
'--config', '/workspace/tests/python3-libraries/python3-libraries.yaml',
'--config', '/workspace/tests/license-test/license-test.yaml',
'-v'
]
- # Build image to run google client library unit tests
name: gcr.io/cloud-builders/docker:latest
args: ['build', '--tag=${_DOCKER_NAMESPACE}/python/tests/google-cloud-python:${_TAG}',
'--no-cache', '/workspace/tests/google-cloud-python/']
- # Run google client library unit tests
name: ${_DOCKER_NAMESPACE}/python/tests/google-cloud-python:${_TAG}
- # Build runtime builder image
name: gcr.io/cloud-builders/docker:latest
args: ['build', '--tag=${_BUILDER_DOCKER_NAMESPACE}/python/gen-dockerfile:${_TAG}',
'--no-cache', '/workspace/builder/gen-dockerfile/']
images: [
'${_DOCKER_NAMESPACE}/python:${_TAG}',
'${_BUILDER_DOCKER_NAMESPACE}/python/gen-dockerfile:${_TAG}',
]