@@ -3,24 +3,23 @@ os: Windows Server 2012
3
3
environment :
4
4
global :
5
5
PYTHONPATH : c:\testdir
6
+ PYTHONWARNINGS : ' ignore:::pip.pep425tags:'
7
+ PIPURL : https://bootstrap.pypa.io/get-pip.py
6
8
7
9
matrix :
8
10
- pythonurl : http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
9
11
- pythonurl : http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi
10
- - pythonurl : http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
11
- - pythonurl : http://www.python.org/ftp/python/2.6.6/python-2.6.6.amd64.msi
12
- - pythonurl : http://www.python.org/ftp/python/3.2.3/python-3.2.3.msi
13
- - pythonurl : http://www.python.org/ftp/python/3.2.3/python-3.2.3.amd64.msi
12
+ - pythonurl : http://www.python.org/ftp/python/3.3.5/python-3.3.5.msi
13
+ - pythonurl : http://www.python.org/ftp/python/3.3.5/python-3.3.5.amd64.msi
14
14
- pythonurl : http://www.python.org/ftp/python/3.4.2/python-3.4.2.msi
15
15
- pythonurl : http://www.python.org/ftp/python/3.4.2/python-3.4.2.amd64.msi
16
16
17
17
install :
18
18
- ps : (new-object net.webclient).DownloadFile($env:pythonurl, 'C:\python.msi')
19
- - ps : start-process -wait -FilePath msiexec.exe -ArgumentList "/qn /i C:\python.msi TARGETDIR=C:\Python"
20
- - ps : (new-object net.webclient).DownloadFile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', 'C:\get-pip.py')
21
- # appveyor has python 2.7.6 x86 preinstalled, but in the wrong directory, this works around this
22
- - ps : if ($env:pythonurl -eq "http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi") {mi c:\python27 c:\python}
23
- - set PATH=C:\Python;%PATH%
19
+ - ps : start-process -wait -FilePath msiexec.exe -ArgumentList '/qn /x C:\python.msi TARGETDIR=C:\Python'
20
+ - ps : start-process -wait -FilePath msiexec.exe -ArgumentList '/qn /i C:\python.msi TARGETDIR=C:\Python'
21
+ - ps : (new-object net.webclient).DownloadFile($env:PIPURL, 'C:\get-pip.py')
22
+ - C:\Python\python.exe --version
24
23
- C:\Python\python.exe c:\get-pip.py
25
24
- C:\Python\Scripts\pip.exe install wheel
26
25
- C:\Python\Scripts\pip.exe install six
@@ -29,7 +28,7 @@ build_script:
29
28
- C:\python\python.exe setup.py bdist_wheel
30
29
31
30
test_script :
32
- - ps : C:\python\scripts \pip.exe install (" dist\" + (gci dist)[0].Name)
31
+ - ps : C:\Python\Scripts \pip.exe install --no-cache-dir --force-reinstall --ignore-installed (' dist\' + (gci dist)[0].Name)
33
32
- mkdir c:\testdir
34
33
- ps : copy-item (gci -path build -re -include Python.Test.dll)[0].FullName c:\testdir
35
34
- c:\python\python.exe src\tests\runtests.py
0 commit comments