blob: 8227f8bef05d0c86ab18d44ea44ec90c5388b115 [file] [log] [blame]
wbond413f2372015-11-05 09:00:20 -05001version: "{build}"
wbond72017002016-03-31 05:09:48 -04002skip_tags: true
wbond413f2372015-11-05 09:00:20 -05003environment:
4 matrix:
5 - PYTHON: "C:\\Python26"
6 PYTHON_ID: "26"
7 PYTHON_EXE: python
8 - PYTHON: "C:\\Python26-x64"
9 PYTHON_ID: "26-x64"
10 PYTHON_EXE: python
11 - PYTHON: "C:\\Python27"
12 PYTHON_ID: "27"
13 PYTHON_EXE: python
14 - PYTHON: "C:\\Python27-x64"
15 PYTHON_ID: "27-x64"
16 PYTHON_EXE: python
17 - PYTHON: "C:\\Python33"
18 PYTHON_ID: "33"
19 PYTHON_EXE: python
20 - PYTHON: "C:\\Python33-x64"
21 PYTHON_ID: "33-x64"
22 PYTHON_EXE: python
23 - PYTHON: "C:\\pypy-4.0.0-win32"
24 PYTHON_ID: "pypy"
25 PYTHON_EXE: pypy
wbond3e5fa462015-11-05 02:28:05 -050026install:
wbond89ee81d2016-07-14 21:21:22 -040027 - ps: |-
wbond413f2372015-11-05 09:00:20 -050028 $env:PYTMP = "${env:TMP}\py";
29 if (!(Test-Path "$env:PYTMP")) {
30 New-Item -ItemType directory -Path "$env:PYTMP" | Out-Null;
31 }
32
wbond796cff12015-11-09 17:26:31 -050033 if ("${env:PYTHON_ID}" -eq "pypy") {
wbond413f2372015-11-05 09:00:20 -050034 if (!(Test-Path "${env:PYTMP}\pypy-4.0.0-win32.zip")) {
35 (New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-win32.zip', "${env:PYTMP}\pypy-4.0.0-win32.zip");
36 }
37 7z x -y "${env:PYTMP}\pypy-4.0.0-win32.zip" -oC:\ | Out-Null;
wbond796cff12015-11-09 17:26:31 -050038 if (!(Test-Path "${env:PYTMP}\get-pip.py")) {
39 (New-Object Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', "${env:PYTMP}\get-pip.py");
40 }
wbond413f2372015-11-05 09:00:20 -050041 & "${env:PYTHON}\pypy.exe" "${env:PYTMP}\get-pip.py";
42 & "${env:PYTHON}\bin\pip.exe" --disable-pip-version-check --quiet install flake8;
wbond796cff12015-11-09 17:26:31 -050043
wbond413f2372015-11-05 09:00:20 -050044 } elseif ("${env:PYTHON_ID}" -eq "26" -or "${env:PYTHON_ID}" -eq "26-x64") {
wbondcfdd1d22016-07-14 21:20:07 -040045 # Skip flake8 for 2.6 since pip, flake8 and pycodestyle have all deprecated support for it
wbond796cff12015-11-09 17:26:31 -050046
wbond413f2372015-11-05 09:00:20 -050047 } else {
48 & "${env:PYTHON}\Scripts\pip.exe" --disable-pip-version-check --quiet install flake8;
49 }
50 - "SET PATH=%PYTHON%;%PATH%"
51cache:
52 - '%TMP%\py\'
wbond3e5fa462015-11-05 02:28:05 -050053build: off
54test_script:
wbond413f2372015-11-05 09:00:20 -050055 - cmd: "%PYTHON_EXE% run.py ci"