Skip to content

Commit 7a60976

Browse files
committed
Add initial .appveyor.yml
1 parent 089f8ce commit 7a60976

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

.appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: build-{build}.{branch}
2+
image: Visual Studio 2017
3+
4+
environment:
5+
matrix:
6+
- version: 3.6
7+
variant: windowsservercore
8+
- version: 3.5
9+
variant: windowsservercore
10+
- version: 2.7
11+
variant: windowsservercore
12+
13+
install:
14+
- ps: |
15+
[Environment]::SetEnvironmentVariable('dockerImage', ('python:{0}' -f $env:version), [EnvironmentVariableTarget]::Process);
16+
[Environment]::SetEnvironmentVariable('buildDirectory', ('{0}/windows/{1}' -f $env:version, $env:variant), [EnvironmentVariableTarget]::Process);
17+
18+
build_script:
19+
- cmd: appveyor-retry docker build --pull -t %dockerImage% %buildDirectory%
20+
21+
after_build:
22+
- ps: docker images
23+
24+
test_script:
25+
- cmd: docker run --rm %dockerImage% python --version
26+
- cmd: docker run --rm %dockerImage% pip freeze --all

update.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -Eeuo pipefail
33
shopt -s nullglob
44

55
declare -A gpgKeys=(
@@ -46,9 +46,10 @@ generated_warning() {
4646
}
4747

4848
travisEnv=
49+
appveyorEnv=
4950
for version in "${versions[@]}"; do
50-
rcGrepV='-v'
5151
rcVersion="${version%-rc}"
52+
rcGrepV='-v'
5253
if [ "$rcVersion" != "$version" ]; then
5354
rcGrepV=
5455
fi
@@ -107,12 +108,19 @@ for version in "${versions[@]}"; do
107108
"$version"/{,*/,*/*/}Dockerfile
108109
)
109110
fi
110-
for variant in wheezy alpine slim; do
111+
for variant in wheezy alpine slim ''; do
111112
[ -d "$version/$variant" ] || continue
112113
travisEnv='\n - VERSION='"$version VARIANT=$variant$travisEnv"
113114
done
114-
travisEnv='\n - VERSION='"$version VARIANT=$travisEnv"
115+
for winVariant in windowsservercore nanoserver; do
116+
if [ -d "$version/windows/$winVariant" ]; then
117+
appveyorEnv='\n - version: '"$version"'\n variant: '"$winVariant$appveyorEnv"
118+
fi
119+
done
115120
done
116121

117122
travis="$(awk -v 'RS=\n\n' '$1 == "env:" { $0 = "env:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)"
118123
echo "$travis" > .travis.yml
124+
125+
appveyor="$(awk -v 'RS=\n\n' '$1 == "environment:" { $0 = "environment:\n matrix:'"$appveyorEnv"'" } { printf "%s%s", $0, RS }' .appveyor.yml)"
126+
echo "$appveyor" > .appveyor.yml

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy