Skip to content

Commit c2ca646

Browse files
committed
Merge pull request #162 from tonyroberts/develop
Update appveyor to use pre-installed Python.
2 parents e2dbb73 + 5d57537 commit c2ca646

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

appveyor.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,26 @@ environment:
44
global:
55
PYTHONPATH: c:\testdir
66
PYTHONWARNINGS: 'ignore:::pip.pep425tags:'
7-
PIPURL: https://bootstrap.pypa.io/get-pip.py
87

98
matrix:
10-
- pythonurl: http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
11-
- pythonurl: http://www.python.org/ftp/python/2.7.6/python-2.7.6.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-
- pythonurl: http://www.python.org/ftp/python/3.4.2/python-3.4.2.msi
15-
- pythonurl: http://www.python.org/ftp/python/3.4.2/python-3.4.2.amd64.msi
9+
# http://www.appveyor.com/docs/installed-software#python
10+
- PYTHON: "C:\\Python27"
11+
- PYTHON: "C:\\Python27-x64"
12+
- PYTHON: "C:\\Python33"
13+
- PYTHON: "C:\\Python33-x64"
14+
- PYTHON: "C:\\Python34"
15+
- PYTHON: "C:\\Python34-x64"
1616

1717
install:
18-
- ps: (new-object net.webclient).DownloadFile($env:pythonurl, 'C:\python.msi')
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
23-
- C:\Python\python.exe c:\get-pip.py
24-
- C:\Python\Scripts\pip.exe install wheel
25-
- C:\Python\Scripts\pip.exe install six
18+
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
19+
- "%PYTHON%\\python.exe -m pip install wheel"
20+
- "%PYTHON%\\python.exe -m pip install six"
2621

2722
build_script:
28-
- C:\python\python.exe setup.py bdist_wheel
23+
- "%PYTHON%\\python.exe setup.py bdist_wheel"
2924

3025
test_script:
31-
- ps: C:\Python\Scripts\pip.exe install --no-cache-dir --force-reinstall --ignore-installed ('dist\' + (gci dist)[0].Name)
26+
- ps: '& "$env:PYTHON\\Scripts\\pip.exe" install --no-cache-dir --force-reinstall --ignore-installed ("dist\\" + (gci dist)[0].Name)'
3227
- mkdir c:\testdir
3328
- ps: copy-item (gci -path build -re -include Python.Test.dll)[0].FullName c:\testdir
34-
- c:\python\python.exe src\tests\runtests.py
29+
- "%PYTHON%\\python.exe src\\tests\\runtests.py"

0 commit comments

Comments
 (0)