|
1 | | -os: Windows Server 2012 |
| 1 | +version: 2.2.0-build{build} |
2 | 2 |
|
3 | | -matrix: |
4 | | - fast_finish: true |
| 3 | +platform: |
| 4 | + - x86 |
| 5 | + - x64 |
5 | 6 |
|
6 | 7 | environment: |
7 | 8 | global: |
8 | | - PYTHONPATH: c:\testdir |
9 | | - PYTHONWARNINGS: 'ignore:::pip.pep425tags:' |
| 9 | + PYTHONPATH: "C:\\testdir" |
| 10 | + PYTHONWARNINGS: "ignore:::wheel.pep425tags:" |
10 | 11 | CONDA_BLD_VERSION: "3.5" |
| 12 | + CONDA_BLD: "C:\\conda" |
| 13 | + NUNIT: "nunit-console" |
11 | 14 |
|
12 | 15 | # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the |
13 | | - # /E:ON and /V:ON options are not enabled in the batch script intepreter |
| 16 | + # /E:ON and /V:ON options are not enabled in the batch script interpreter |
14 | 17 | # See: http://stackoverflow.com/a/13751649/163740 |
15 | 18 | CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\run_with_env.cmd" |
16 | 19 |
|
17 | | - |
18 | 20 | matrix: |
19 | | - # http://www.appveyor.com/docs/installed-software#python |
20 | | - - PYTHON: "C:\\Python27" |
21 | | - CONDA_PY: "27" |
22 | | - CONDA_BLD: "C:\\miniconda-32" |
23 | | - CONDA_BLD_ARCH: "32" |
24 | | - |
25 | | - - PYTHON: "C:\\Python27-x64" |
26 | | - CONDA_PY: "27" |
27 | | - CONDA_BLD: "C:\\miniconda-64" |
28 | | - CONDA_BLD_ARCH: "64" |
29 | | - |
30 | | - - PYTHON: "C:\\Python33" |
31 | | - CONDA_PY: "33" |
32 | | - CONDA_BLD: "C:\\miniconda-32" |
33 | | - CONDA_BLD_ARCH: "32" |
34 | | - |
35 | | - - PYTHON: "C:\\Python33-x64" |
36 | | - CONDA_PY: "33" |
37 | | - CONDA_BLD: "C:\\miniconda-64" |
38 | | - CONDA_BLD_ARCH: "64" |
39 | | - |
40 | | - - PYTHON: "C:\\Python34" |
41 | | - CONDA_PY: "34" |
42 | | - CONDA_BLD: "C:\\miniconda-32" |
43 | | - CONDA_BLD_ARCH: "32" |
44 | | - |
45 | | - - PYTHON: "C:\\Python34-x64" |
46 | | - CONDA_PY: "34" |
47 | | - CONDA_BLD_ARCH: "64" |
48 | | - CONDA_BLD: "C:\\miniconda-64" |
49 | | - |
50 | | - - PYTHON: "C:\\Python35" |
51 | | - CONDA_PY: "35" |
52 | | - CONDA_BLD: "C:\\miniconda-32" |
53 | | - CONDA_BLD_ARCH: "32" |
54 | | - |
55 | | - - PYTHON: "C:\\Python35-x64" |
56 | | - CONDA_PY: "35" |
57 | | - CONDA_BLD: "C:\\miniconda-64" |
58 | | - CONDA_BLD_ARCH: "64" |
59 | | - |
60 | | - - PYTHON: "C:\\Python36" |
61 | | - CONDA_PY: "36" |
62 | | - CONDA_BLD: "C:\\miniconda-32" |
63 | | - CONDA_BLD_ARCH: "32" |
64 | | - |
65 | | - - PYTHON: "C:\\Python36-x64" |
66 | | - CONDA_PY: "36" |
67 | | - CONDA_BLD: "C:\\miniconda-64" |
68 | | - CONDA_BLD_ARCH: "64" |
| 21 | + - PYTHON_VERSION: "2.7" |
| 22 | + - PYTHON_VERSION: "3.3" |
| 23 | + - PYTHON_VERSION: "3.4" |
| 24 | + - PYTHON_VERSION: "3.5" |
| 25 | + - PYTHON_VERSION: "3.6" |
| 26 | + |
| 27 | +init: |
| 28 | + # Prepare environment |
| 29 | + - mkdir C:\testdir |
| 30 | + |
| 31 | + # Set environment variables depending based on build cfg |
| 32 | + - SET CONDA_PY=%PYTHON_VERSION:.=% |
| 33 | + - SET CONDA_BLD_ARCH=%PLATFORM:x=% |
| 34 | + - SET PYTHON=C:\PYTHON%CONDA_PY% |
| 35 | + - IF %PLATFORM%==x86 (SET CONDA_BLD_ARCH=32) |
| 36 | + - IF %PLATFORM%==x86 (SET NUNIT=%NUNIT%-x86) |
| 37 | + - IF %PLATFORM%==x64 (SET PYTHON=%PYTHON%-x64) |
69 | 38 |
|
70 | 39 | install: |
71 | | -# install conda and deps |
72 | | -- powershell .\ci\install.ps1 |
73 | | -- "%CONDA_BLD%\\Scripts\\conda config --set show_channel_urls true --set always_yes true --set changeps1 false" |
74 | | -- "%CONDA_BLD%\\Scripts\\conda update -q conda" |
75 | | -- "%CONDA_BLD%\\Scripts\\conda info -a" |
| 40 | + # install conda and deps |
| 41 | + - ps: ".\\ci\\install.ps1" |
| 42 | + - "%CONDA_BLD%\\Scripts\\conda config --set show_channel_urls true --set always_yes true --set changeps1 false" |
| 43 | + - "%CONDA_BLD%\\Scripts\\conda update -q conda" |
| 44 | + - "%CONDA_BLD%\\Scripts\\conda info -a" |
76 | 45 |
|
77 | | -# install for wheels |
78 | | -- "%PYTHON%\\python.exe -m pip install --upgrade pip" |
79 | | -- "%PYTHON%\\python.exe -m pip install wheel" |
80 | | -- "%PYTHON%\\python.exe -m pip install six" |
| 46 | + # install for wheels |
| 47 | + - "%PYTHON%\\python.exe -m pip install --upgrade pip" |
| 48 | + - "%PYTHON%\\python.exe -m pip install wheel" |
| 49 | + - "%PYTHON%\\python.exe -m pip install six" |
81 | 50 |
|
82 | 51 | build_script: |
83 | | -# build wheel |
84 | | -- "%PYTHON%\\python.exe setup.py bdist_wheel" |
| 52 | + # build wheel |
| 53 | + - "%PYTHON%\\python.exe setup.py bdist_wheel" |
85 | 54 |
|
86 | | -# build and dist conda package |
87 | | -- cmd: "%CMD_IN_ENV% %CONDA_BLD%\\Scripts\\conda build conda.recipe" |
88 | | -- ps: $CONDA_PKG=(& "$env:CONDA_BLD\\Scripts\\conda" build conda.recipe --output -q) |
89 | | -- ps: copy-item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\\dist\\" |
| 55 | + # build and dist conda package |
| 56 | + - cmd: "%CMD_IN_ENV% %CONDA_BLD%\\Scripts\\conda build conda.recipe" |
| 57 | + - ps: $CONDA_PKG=(& "$env:CONDA_BLD\\Scripts\\conda" build conda.recipe --output -q) |
| 58 | + - ps: copy-item $CONDA_PKG "$env:APPVEYOR_BUILD_FOLDER\\dist\\" |
90 | 59 |
|
91 | 60 | test_script: |
92 | 61 | - ps: '& "$env:PYTHON\\Scripts\\pip.exe" install --no-cache-dir --force-reinstall --ignore-installed ("dist\\" + (gci dist\*.whl)[0].Name)' |
93 | | - - mkdir c:\testdir |
94 | | - - ps: copy-item (gci -path build -re -include Python.Test.dll)[0].FullName c:\testdir |
| 62 | + - ps: copy-item (gci -path build -re -include Python.Test.dll)[0].FullName C:\testdir |
95 | 63 | - "%PYTHON%\\python.exe src\\tests\\runtests.py" |
| 64 | + # - "%NUNIT% src/embed_tests/bin/%PLATFORM%/ReleaseWin/Python.EmbeddingTest.dll" |
96 | 65 |
|
97 | 66 | artifacts: |
98 | 67 | # bdist_wheel puts your built wheel in the dist directory |
|
0 commit comments