forked from docker-library/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.azure.yml
More file actions
126 lines (119 loc) · 3.72 KB
/
Copy path.azure.yml
File metadata and controls
126 lines (119 loc) · 3.72 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
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
115
116
117
118
119
120
121
122
123
124
125
126
strategy:
matrix:
3.8-rc-stretch:
azureImage: 'ubuntu-16.04'
buildContext: '3.8-rc/stretch'
3.8-rc-stretch-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.8-rc/stretch/slim'
3.8-rc-alpine3.9:
azureImage: 'ubuntu-16.04'
buildContext: '3.8-rc/alpine3.9'
3.8-rc-windows-windowsservercore-1803:
azureImage: 'win1803'
buildContext: '3.8-rc/windows/windowsservercore-1803'
3.7-stretch:
azureImage: 'ubuntu-16.04'
buildContext: '3.7/stretch'
3.7-stretch-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.7/stretch/slim'
3.7-alpine3.9:
azureImage: 'ubuntu-16.04'
buildContext: '3.7/alpine3.9'
3.7-alpine3.8:
azureImage: 'ubuntu-16.04'
buildContext: '3.7/alpine3.8'
3.7-windows-windowsservercore-1803:
azureImage: 'win1803'
buildContext: '3.7/windows/windowsservercore-1803'
3.6-stretch:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/stretch'
3.6-stretch-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/stretch/slim'
3.6-jessie:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/jessie'
3.6-jessie-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/jessie/slim'
3.6-alpine3.9:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/alpine3.9'
3.6-alpine3.8:
azureImage: 'ubuntu-16.04'
buildContext: '3.6/alpine3.8'
3.6-windows-windowsservercore-1803:
azureImage: 'win1803'
buildContext: '3.6/windows/windowsservercore-1803'
3.5-stretch:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/stretch'
3.5-stretch-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/stretch/slim'
3.5-jessie:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/jessie'
3.5-jessie-slim:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/jessie/slim'
3.5-alpine3.9:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/alpine3.9'
3.5-alpine3.8:
azureImage: 'ubuntu-16.04'
buildContext: '3.5/alpine3.8'
2.7-stretch:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/stretch'
2.7-stretch-slim:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/stretch/slim'
2.7-jessie:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/jessie'
2.7-jessie-slim:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/jessie/slim'
2.7-alpine3.9:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/alpine3.9'
2.7-alpine3.8:
azureImage: 'ubuntu-16.04'
buildContext: '2.7/alpine3.8'
2.7-windows-windowsservercore-1803:
azureImage: 'win1803'
buildContext: '2.7/windows/windowsservercore-1803'
pool:
vmImage: $(azureImage)
steps:
- bash: |
set -Eeuo pipefail -x
#git clone --depth 1 https://github.com/docker-library/official-images.git ~/oi
git clone --depth 1 https://github.com/tianon/stackbrew.git -b azure ~/oi
~/oi/.azure/wait-for-docker.sh
~/oi/.azure/set-docker-tag.sh
displayName: 'Prepare environment'
- bash: |
set -Eeuo pipefail -x
source <(wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh')
displayName: 'Apply pgp-happy-eyeballs'
condition: eq( variables['Agent.OS'], 'Linux' )
- bash: |
set -Eeuo pipefail -x
docker build -t '$(dockerTag)' .
workingDirectory: $(buildContext)
displayName: '"docker build"'
- bash: |
set -Eeuo pipefail -x
docker run --rm '$(dockerTag)' python --version
displayName: 'Basic smoke tests'
- bash: |
set -Eeuo pipefail -x
~/oi/test/run.sh '$(dockerTag)'
displayName: 'Run tests'
condition: eq( variables['Agent.OS'], 'Linux' ) # TODO get tests running on Windows too
# vim:set tabstop=2 shiftwidth=2: