|
| 1 | +strategy: |
| 2 | + matrix: |
| 3 | + 3.8-rc-stretch: |
| 4 | + azureImage: 'ubuntu-16.04' |
| 5 | + buildContext: '3.8-rc/stretch' |
| 6 | + 3.8-rc-stretch-slim: |
| 7 | + azureImage: 'ubuntu-16.04' |
| 8 | + buildContext: '3.8-rc/stretch/slim' |
| 9 | + 3.8-rc-alpine3.9: |
| 10 | + azureImage: 'ubuntu-16.04' |
| 11 | + buildContext: '3.8-rc/alpine3.9' |
| 12 | + 3.8-rc-windows-windowsservercore-1803: |
| 13 | + azureImage: 'win1803' |
| 14 | + buildContext: '3.8-rc/windows/windowsservercore-1803' |
| 15 | + 3.7-stretch: |
| 16 | + azureImage: 'ubuntu-16.04' |
| 17 | + buildContext: '3.7/stretch' |
| 18 | + 3.7-stretch-slim: |
| 19 | + azureImage: 'ubuntu-16.04' |
| 20 | + buildContext: '3.7/stretch/slim' |
| 21 | + 3.7-alpine3.9: |
| 22 | + azureImage: 'ubuntu-16.04' |
| 23 | + buildContext: '3.7/alpine3.9' |
| 24 | + 3.7-alpine3.8: |
| 25 | + azureImage: 'ubuntu-16.04' |
| 26 | + buildContext: '3.7/alpine3.8' |
| 27 | + 3.7-windows-windowsservercore-1803: |
| 28 | + azureImage: 'win1803' |
| 29 | + buildContext: '3.7/windows/windowsservercore-1803' |
| 30 | + 3.6-stretch: |
| 31 | + azureImage: 'ubuntu-16.04' |
| 32 | + buildContext: '3.6/stretch' |
| 33 | + 3.6-stretch-slim: |
| 34 | + azureImage: 'ubuntu-16.04' |
| 35 | + buildContext: '3.6/stretch/slim' |
| 36 | + 3.6-jessie: |
| 37 | + azureImage: 'ubuntu-16.04' |
| 38 | + buildContext: '3.6/jessie' |
| 39 | + 3.6-jessie-slim: |
| 40 | + azureImage: 'ubuntu-16.04' |
| 41 | + buildContext: '3.6/jessie/slim' |
| 42 | + 3.6-alpine3.9: |
| 43 | + azureImage: 'ubuntu-16.04' |
| 44 | + buildContext: '3.6/alpine3.9' |
| 45 | + 3.6-alpine3.8: |
| 46 | + azureImage: 'ubuntu-16.04' |
| 47 | + buildContext: '3.6/alpine3.8' |
| 48 | + 3.6-windows-windowsservercore-1803: |
| 49 | + azureImage: 'win1803' |
| 50 | + buildContext: '3.6/windows/windowsservercore-1803' |
| 51 | + 3.5-stretch: |
| 52 | + azureImage: 'ubuntu-16.04' |
| 53 | + buildContext: '3.5/stretch' |
| 54 | + 3.5-stretch-slim: |
| 55 | + azureImage: 'ubuntu-16.04' |
| 56 | + buildContext: '3.5/stretch/slim' |
| 57 | + 3.5-jessie: |
| 58 | + azureImage: 'ubuntu-16.04' |
| 59 | + buildContext: '3.5/jessie' |
| 60 | + 3.5-jessie-slim: |
| 61 | + azureImage: 'ubuntu-16.04' |
| 62 | + buildContext: '3.5/jessie/slim' |
| 63 | + 3.5-alpine3.9: |
| 64 | + azureImage: 'ubuntu-16.04' |
| 65 | + buildContext: '3.5/alpine3.9' |
| 66 | + 3.5-alpine3.8: |
| 67 | + azureImage: 'ubuntu-16.04' |
| 68 | + buildContext: '3.5/alpine3.8' |
| 69 | + 2.7-stretch: |
| 70 | + azureImage: 'ubuntu-16.04' |
| 71 | + buildContext: '2.7/stretch' |
| 72 | + 2.7-stretch-slim: |
| 73 | + azureImage: 'ubuntu-16.04' |
| 74 | + buildContext: '2.7/stretch/slim' |
| 75 | + 2.7-jessie: |
| 76 | + azureImage: 'ubuntu-16.04' |
| 77 | + buildContext: '2.7/jessie' |
| 78 | + 2.7-jessie-slim: |
| 79 | + azureImage: 'ubuntu-16.04' |
| 80 | + buildContext: '2.7/jessie/slim' |
| 81 | + 2.7-alpine3.9: |
| 82 | + azureImage: 'ubuntu-16.04' |
| 83 | + buildContext: '2.7/alpine3.9' |
| 84 | + 2.7-alpine3.8: |
| 85 | + azureImage: 'ubuntu-16.04' |
| 86 | + buildContext: '2.7/alpine3.8' |
| 87 | + 2.7-windows-windowsservercore-1803: |
| 88 | + azureImage: 'win1803' |
| 89 | + buildContext: '2.7/windows/windowsservercore-1803' |
| 90 | + |
| 91 | +pool: |
| 92 | + vmImage: $(azureImage) |
| 93 | + |
| 94 | +steps: |
| 95 | +- bash: | |
| 96 | + set -Eeuo pipefail -x |
| 97 | + #git clone --depth 1 https://github.com/docker-library/official-images.git ~/oi |
| 98 | + git clone --depth 1 https://github.com/tianon/stackbrew.git -b azure ~/oi |
| 99 | + ~/oi/.azure/wait-for-docker.sh |
| 100 | + ~/oi/.azure/set-docker-tag.sh |
| 101 | + displayName: 'Prepare environment' |
| 102 | + |
| 103 | +- bash: | |
| 104 | + set -Eeuo pipefail -x |
| 105 | + source <(wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh') |
| 106 | + displayName: 'Apply pgp-happy-eyeballs' |
| 107 | + condition: eq( variables['Agent.OS'], 'Linux' ) |
| 108 | + |
| 109 | +- bash: | |
| 110 | + set -Eeuo pipefail -x |
| 111 | + docker build -t '$(dockerTag)' . |
| 112 | + workingDirectory: $(buildContext) |
| 113 | + displayName: '"docker build"' |
| 114 | + |
| 115 | +- bash: | |
| 116 | + set -Eeuo pipefail -x |
| 117 | + docker run --rm '$(dockerTag)' python --version |
| 118 | + displayName: 'Basic smoke tests' |
| 119 | + |
| 120 | +- bash: | |
| 121 | + set -Eeuo pipefail -x |
| 122 | + ~/oi/test/run.sh '$(dockerTag)' |
| 123 | + displayName: 'Run tests' |
| 124 | + condition: eq( variables['Agent.OS'], 'Linux' ) # TODO get tests running on Windows too |
| 125 | + |
| 126 | +# vim:set tabstop=2 shiftwidth=2: |
0 commit comments