|
1 | | -version: "{build}" |
2 | 1 | environment: |
3 | 2 | matrix: |
4 | | - - PYTHON: "C:\\Python27" |
5 | | - - PYTHON: "C:\\Python27-x64" |
6 | | - - PYTHON: "C:\\Python34" |
7 | | - - PYTHON: "C:\\Python34-x64" |
8 | | - - PYTHON: "C:\\Python35" |
9 | | - - PYTHON: "C:\\Python35-x64" |
| 3 | + - PYTHON: 'C:\Python27' |
| 4 | + - PYTHON: 'C:\Python27-x64' |
| 5 | + - PYTHON: 'C:\Python34' |
| 6 | + - PYTHON: 'C:\Python34-x64' |
| 7 | + - PYTHON: 'C:\Python35' |
| 8 | + - PYTHON: 'C:\Python35-x64' |
10 | 9 | matrix: |
11 | 10 | fast_finish: true |
12 | 11 | init: |
13 | | -- "ECHO %PATH%" |
14 | | -- "ECHO %PYTHON%" |
15 | | -- ps: "ls C:/Python*" |
| 12 | +- ps: ls C:/Python* |
| 13 | +- 'SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%' |
| 14 | +- 'python -c "import os, pprint; pprint.pprint(sorted(os.environ.items()))"' |
| 15 | +# Use python -m pip when upgrading pip to avoid WindowsError: Access is denied |
| 16 | +- python -m pip install pip --upgrade |
16 | 17 | install: |
17 | | -- "git submodule update --init" |
18 | | -- "%PYTHON%\\Scripts\\pip.exe --version" |
19 | | -- "%PYTHON%\\Scripts\\pip.exe install -rrequirements-dev.txt wheel" |
| 18 | +- git submodule update --init |
| 19 | +- pip install wheel -rrequirements-dev.txt |
20 | 20 | build: false |
21 | 21 | test_script: |
22 | | -- '%PYTHON%\\python.exe -c "import os, pprint; pprint.pprint(sorted(os.environ.items()))"' |
23 | | -- "%PYTHON%\\python.exe -m pytest sasstests.py" |
| 22 | +- python -m pytest sasstests.py |
24 | 23 | after_test: |
25 | | -- "%PYTHON%\\python.exe setup.py bdist_wheel" |
| 24 | +- python setup.py bdist_wheel |
26 | 25 | artifacts: |
27 | 26 | - path: dist\* |
28 | 27 | cache: |
|
0 commit comments