forked from GoogleCloudPlatform/python-runtime
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild_test.yaml
114 lines (108 loc) · 3.58 KB
/
cloudbuild_test.yaml
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
timeout: 3600s
steps:
- # Explicitly pull image into GCB so that later steps work
name: '${_DOCKER_NAMESPACE}/python:${_TAG}'
args: [
'/bin/true',
]
id: runtime
- # Validate structure of base runtime image
name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_default.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_python27.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_python34.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_python35.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_python36.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/virtualenv/virtualenv_python37.yaml',
]
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/no-virtualenv/no-virtualenv.yaml',
]
waitFor: ['runtime']
# Temporarily disabled because it fails on symbolic links in Ubuntu:
# https://github.com/GoogleCloudPlatform/container-structure-test/issues/77
#- # Check license compliance
# name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
# args: [
# '-test.v',
# '-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
# '/workspace/tests/license-test/license-test.yaml'
# ]
# waitFor: ['runtime']
- # Do third-party library compatibility tests for Python 2
name: gcr.io/cloud-builders/docker:latest
args: [
'build', '-t', 'python2-libraries-intermediate', '--build-arg',
'intermediate_image=${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/python2-libraries'
]
id: python2-libraries-intermediate
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', 'python2-libraries-intermediate',
'/workspace/tests/python2-libraries/python2-libraries.yaml'
]
waitFor: ['python2-libraries-intermediate']
- # Do third-party library compatibility tests for Python 3
name: gcr.io/cloud-builders/docker:latest
args: [
'build', '-t', 'python3-libraries-intermediate', '--build-arg',
'intermediate_image=${_DOCKER_NAMESPACE}/python:${_TAG}',
'/workspace/tests/python3-libraries'
]
id: python3-libraries-intermediate
waitFor: ['runtime']
- name: gcr.io/gcp-runtimes/container-structure-test:v0.2.1
args: [
'-test.v',
'-image', 'python3-libraries-intermediate',
'/workspace/tests/python3-libraries/python3-libraries.yaml'
]
waitFor: ['python3-libraries-intermediate']
- # Run other compatibility tests
name: gcr.io/cloud-builders/docker:latest
args: [
'build', '--tag=${_DOCKER_NAMESPACE}/python/tests/eventlet:${_TAG}',
'--no-cache', '/workspace/tests/eventlet/'
]
waitFor: ['runtime']
images: []