Skip to content

Commit 919dd25

Browse files
authored
Merge pull request #21 from altendky/appveyor
Appveyor
2 parents 7830268 + 1660f7d commit 919dd25

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

appveyor.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
environment:
2+
VENV: "%APPVEYOR_BUILD_FOLDER%\\venv"
3+
4+
matrix:
5+
- TOXENV: py26
6+
PYTHON: "C:\\Python26"
7+
8+
- TOXENV: py26
9+
PYTHON: "C:\\Python26-x64"
10+
11+
- TOXENV: py27
12+
PYTHON: "C:\\Python27"
13+
14+
- TOXENV: py27
15+
PYTHON: "C:\\Python27-x64"
16+
17+
- TOXENV: py34
18+
PYTHON: "C:\\Python34"
19+
20+
- TOXENV: py34
21+
PYTHON: "C:\\Python34-x64"
22+
23+
- TOXENV: py35
24+
PYTHON: "C:\\Python35"
25+
26+
- TOXENV: py35
27+
PYTHON: "C:\\Python35-x64"
28+
29+
- TOXENV: py36
30+
PYTHON: "C:\\Python36"
31+
32+
- TOXENV: py36
33+
PYTHON: "C:\\Python36-x64"
34+
35+
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
36+
init:
37+
- ps: if (Get-ChildItem Env:ENABLE_RDP -ErrorAction SilentlyContinue) {iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))} else {echo RDP not enabled}
38+
- echo "TOXENV- %TOXENV%"
39+
40+
install:
41+
# https://github.com/pypa/virtualenv/issues/1050
42+
- pip install -U git+https://github.com/pypa/virtualenv@e8163e83a92c9098f51d390289323232ece15e3b
43+
- virtualenv -p "%PYTHON%\\python.exe" "%VENV%"
44+
- "%VENV%\\Scripts\\activate"
45+
# https://github.com/pypa/virtualenv/issues/1050
46+
- pip install git+https://github.com/pypa/virtualenv@e8163e83a92c9098f51d390289323232ece15e3b
47+
- pip install tox
48+
49+
build: off
50+
51+
test_script:
52+
- tox
53+
54+
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
55+
on_finish:
56+
- ps: if (Get-ChildItem Env:ENABLE_RDP -ErrorAction SilentlyContinue) {$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))} else {echo RDP not enabled}

0 commit comments

Comments
 (0)