Skip to content

Commit f87b11b

Browse files
committed
Add appveyor.yml
1 parent 7830268 commit f87b11b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

appveyor.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
- virtualenv -p "%PYTHON%\\python.exe" "%VENV%"
42+
- copy "%PYTHON%\\python3.dll" "%VENV%\\Scripts"
43+
- "%VENV%\\Scripts\\activate"
44+
# https://github.com/pypa/virtualenv/issues/1050
45+
- pip install git+https://github.com/pypa/virtualenv@e8163e83a92c9098f51d390289323232ece15e3b
46+
- pip install tox
47+
48+
test_script:
49+
- tox
50+
51+
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
52+
on_finish:
53+
- 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)