55 args : [
66 ' /bin/true' ,
77 ]
8+ id : runtime
9+
810- # Validate structure of base runtime image
911 name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
1012 args : [
1113 ' -test.v' ,
1214 ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1315 ' /workspace/tests/virtualenv/virtualenv_default.yaml' ,
16+ ]
17+ waitFor : ['runtime']
18+ - name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
19+ args : [
20+ ' -test.v' ,
21+ ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1422 ' /workspace/tests/virtualenv/virtualenv_python27.yaml' ,
23+ ]
24+ waitFor : ['runtime']
25+ - name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
26+ args : [
27+ ' -test.v' ,
28+ ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1529 ' /workspace/tests/virtualenv/virtualenv_python34.yaml' ,
30+ ]
31+ waitFor : ['runtime']
32+ - name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
33+ args : [
34+ ' -test.v' ,
35+ ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1636 ' /workspace/tests/virtualenv/virtualenv_python35.yaml' ,
37+ ]
38+ waitFor : ['runtime']
39+ - name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
40+ args : [
41+ ' -test.v' ,
42+ ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1743 ' /workspace/tests/virtualenv/virtualenv_python36.yaml' ,
44+ ]
45+ waitFor : ['runtime']
46+ - name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
47+ args : [
48+ ' -test.v' ,
49+ ' -image' , '${_DOCKER_NAMESPACE}/python:${_TAG}',
1850 ' /workspace/tests/no-virtualenv/no-virtualenv.yaml' ,
1951 ]
52+ waitFor : ['runtime']
53+
2054# Temporarily disabled because it fails on symbolic links in Ubuntu:
2155# https://github.com/GoogleCloudPlatform/container-structure-test/issues/77
2256# - # Check license compliance
@@ -26,35 +60,48 @@ steps:
2660# '-image', '${_DOCKER_NAMESPACE}/python:${_TAG}',
2761# '/workspace/tests/license-test/license-test.yaml'
2862# ]
29- - # Do third-party library compatibility tests
63+ # waitFor: ['runtime']
64+
65+ - # Do third-party library compatibility tests for Python 2
3066 name : gcr.io/cloud-builders/docker:latest
3167 args : [
3268 ' build' , '-t', 'python2-libraries-intermediate', '--build-arg',
3369 ' intermediate_image=${_DOCKER_NAMESPACE}/python:${_TAG}' ,
3470 ' /workspace/tests/python2-libraries'
3571 ]
72+ id : python2-libraries-intermediate
73+ waitFor : ['runtime']
3674- name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
3775 args : [
3876 ' -test.v' ,
3977 ' -image' , 'python2-libraries-intermediate',
4078 ' /workspace/tests/python2-libraries/python2-libraries.yaml'
4179 ]
42- - name : gcr.io/cloud-builders/docker:latest
80+ waitFor : ['python2-libraries-intermediate']
81+
82+ - # Do third-party library compatibility tests for Python 3
83+ name : gcr.io/cloud-builders/docker:latest
4384 args : [
4485 ' build' , '-t', 'python3-libraries-intermediate', '--build-arg',
4586 ' intermediate_image=${_DOCKER_NAMESPACE}/python:${_TAG}' ,
4687 ' /workspace/tests/python3-libraries'
4788 ]
89+ id : python3-libraries-intermediate
90+ waitFor : ['runtime']
4891- name : gcr.io/gcp-runtimes/container-structure-test:v0.2.1
4992 args : [
5093 ' -test.v' ,
5194 ' -image' , 'python3-libraries-intermediate',
5295 ' /workspace/tests/python3-libraries/python3-libraries.yaml'
5396 ]
97+ waitFor : ['python3-libraries-intermediate']
98+
5499- # Run other compatibility tests
55100 name : gcr.io/cloud-builders/docker:latest
56101 args : [
57102 ' build' , '--tag=${_DOCKER_NAMESPACE}/python/tests/eventlet:${_TAG}',
58103 ' --no-cache' , '/workspace/tests/eventlet/'
59104 ]
105+ waitFor : ['runtime']
106+
60107images : []
0 commit comments