forked from docker-library/python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
26 lines (21 loc) · 825 Bytes
/
.appveyor.yml
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
version: build-{build}.{branch}
image: Visual Studio 2017
environment:
matrix:
- version: 3.7-rc
variant: windowsservercore-ltsc2016
- version: 3.6
variant: windowsservercore-ltsc2016
- version: 2.7
variant: windowsservercore-ltsc2016
install:
- ps: |
[Environment]::SetEnvironmentVariable('dockerImage', ('python:{0}' -f $env:version), [EnvironmentVariableTarget]::Process);
[Environment]::SetEnvironmentVariable('buildDirectory', ('{0}/windows/{1}' -f $env:version, $env:variant), [EnvironmentVariableTarget]::Process);
build_script:
- cmd: appveyor-retry docker build --pull -t %dockerImage% %buildDirectory%
after_build:
- ps: docker images
test_script:
- cmd: docker run --rm %dockerImage% python --version
- cmd: docker run --rm %dockerImage% pip freeze --all