|
1 | | -environment: |
2 | | - global: |
3 | | - # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the |
4 | | - # /E:ON and /V:ON options are not enabled in the batch script intepreter |
5 | | - # See: http://stackoverflow.com/a/13751649/163740 |
6 | | - CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" |
| 1 | +build: off |
7 | 2 |
|
| 3 | +environment: |
8 | 4 | matrix: |
9 | | - |
10 | | - # Pre-installed Python versions, which Appveyor may upgrade to |
11 | | - # a later point release. |
12 | | - # See: http://www.appveyor.com/docs/installed-software#python |
13 | | - |
14 | | - - PYTHON: "C:\\Python37" |
15 | | - PYTHON_VERSION: "3.7.x" |
16 | | - PYTHON_ARCH: "32" |
17 | | - |
18 | | - - PYTHON: "C:\\Python37-x64" |
19 | | - PYTHON_VERSION: "3.7.x" |
20 | | - PYTHON_ARCH: "64" |
21 | | - |
22 | | - - PYTHON: "C:\\Python36" |
23 | | - PYTHON_VERSION: "3.6.x" |
24 | | - PYTHON_ARCH: "32" |
25 | | - |
26 | | - - PYTHON: "C:\\Python36-x64" |
27 | | - PYTHON_VERSION: "3.6.x" |
28 | | - PYTHON_ARCH: "64" |
29 | | - |
30 | | - - PYTHON: "C:\\Python34" |
31 | | - PYTHON_VERSION: "3.4.x" |
32 | | - PYTHON_ARCH: "32" |
33 | | - |
34 | | - - PYTHON: "C:\\Python34-x64" |
35 | | - PYTHON_VERSION: "3.4.x" |
36 | | - PYTHON_ARCH: "64" |
37 | | - |
38 | | - # Python versions not pre-installed |
39 | | - |
40 | | - - PYTHON: "C:\\Python35" |
41 | | - PYTHON_VERSION: "3.5.0" |
42 | | - PYTHON_ARCH: "32" |
43 | | - |
44 | | - - PYTHON: "C:\\Python35-x64" |
45 | | - PYTHON_VERSION: "3.5.0" |
46 | | - PYTHON_ARCH: "64" |
| 5 | + - TOXENV: py35 |
| 6 | + - TOXENV: py36 |
| 7 | + - TOXENV: py37 |
| 8 | + - TOXENV: py38 |
47 | 9 |
|
48 | 10 | install: |
49 | | - # We need wheel installed to build wheels |
50 | | - - "%PYTHON%\\python.exe -m pip install wheel nose" |
51 | | - |
52 | | - # Install Python (from the official .msi of http://python.org) and pip when |
53 | | - # not already installed. |
54 | | - - ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 } |
55 | | - |
56 | | - # Prepend newly installed Python to the PATH of this build (this cannot be |
57 | | - # done from inside the powershell script as it would require to restart |
58 | | - # the parent CMD process). |
59 | | - - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
60 | | - |
61 | | - # Check that we have the expected version and architecture for Python |
62 | | - - "python --version" |
63 | | - - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" |
64 | | - |
65 | | - # Upgrade to the latest version of pip to avoid it displaying warnings |
66 | | - # about it being out of date. |
67 | | - - "%CMD_IN_ENV% pip install --disable-pip-version-check --user --upgrade pip" |
68 | | - |
69 | | - # Install the build dependencies of the project. If some dependencies contain |
70 | | - # compiled extensions and are not provided as pre-built wheel packages, |
71 | | - # pip will build them from source using the MSVC compiler matching the |
72 | | - # target Python version and architecture |
73 | | - - "%CMD_IN_ENV% pip install -e ." |
74 | | - |
75 | | -build_script: |
76 | | - # Build the compiled extension |
77 | | - - "%CMD_IN_ENV% python setup.py build" |
| 11 | +- pip install toxtest_script: |
78 | 12 |
|
79 | 13 | test_script: |
80 | | - # Run the project tests |
81 | | - - "%CMD_IN_ENV% python setup.py nosetests" |
82 | | - |
83 | | -after_test: |
84 | | - # If tests are successful, create binary packages for the project. |
85 | | - - "%CMD_IN_ENV% python setup.py bdist_wininst" |
86 | | - - "%CMD_IN_ENV% python setup.py bdist_msi" |
87 | | - - ps: "ls dist" |
88 | | - |
89 | | -artifacts: |
90 | | - # Archive the generated packages in the ci.appveyor.com build report. |
91 | | - - path: dist\* |
92 | | - |
93 | | -#on_success: |
94 | | -# - TODO: upload the content of dist/*.whl to a public wheelhouse |
95 | | -# |
| 14 | +- tox |
0 commit comments