|
1 | 1 | environment: |
| 2 | + |
| 3 | + TOXENV: py,py2 |
| 4 | + TOX_TESTENV_PASSENV: DISTUTILS_USE_SDK MSSdk INCLUDE LIB |
| 5 | + # https://packaging.python.org/guides/supporting-windows-using-appveyor/#testing-with-tox |
| 6 | + |
2 | 7 | # for more python versions have a look at |
3 | 8 | # https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml |
4 | 9 | matrix: |
5 | | - # 64 julia-0.6 Python-27 |
6 | | - - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe" |
7 | | - PYTHONDIR: "C:\\Python27-x64" |
| 10 | + # 32 julia-0.6 Python-35 |
| 11 | + - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe" |
| 12 | + PYTHONDIR: "C:\\Python35" |
| 13 | + BATDIR: ci\appveyor\win32 |
8 | 14 |
|
9 | | - # 32 julia-0.6 Python-27 |
| 15 | + # 32 julia latest Python-35 |
10 | 16 | - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe" |
11 | | - PYTHONDIR: "C:\\Python27" |
| 17 | + PYTHONDIR: "C:\\Python35" |
| 18 | + BATDIR: ci\appveyor\win32 |
12 | 19 |
|
13 | 20 | # 64 julia-0.6 Python-35 |
14 | 21 | - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe" |
15 | 22 | PYTHONDIR: "C:\\Python35-x64" |
16 | | - |
17 | | - # 32 julia-latest Python-27 |
18 | | - - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe" |
19 | | - PYTHONDIR: "C:\\Python27" |
20 | | - |
21 | | - # 64 julia-latest Python-27 |
22 | | - - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe" |
23 | | - PYTHONDIR: "C:\\Python27-x64" |
| 23 | + BATDIR: ci\appveyor\win64 |
24 | 24 |
|
25 | 25 | # 64 julia latest Python-35 |
26 | 26 | - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe" |
27 | 27 | PYTHONDIR: "C:\\Python35-x64" |
28 | | - |
29 | | - # 64 julia latest Cross Version |
30 | | - - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe" |
31 | | - PYTHONDIR: "C:\\Python35-x64" |
32 | | - CROSS_VERSION_PATH: "C:\\Python27-x64" |
33 | | - |
34 | | - # 32 julia latest Cross Version |
35 | | - - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe" |
36 | | - PYTHONDIR: "C:\\Python35" |
37 | | - CROSS_VERSION_PATH: "C:\\Python27" |
38 | | - |
39 | | -matrix: |
40 | | - allow_failures: |
41 | | - - CROSS_VERSION_PATH: "C:\\Python27-x64" |
42 | | - - CROSS_VERSION_PATH: "C:\\Python27" |
| 28 | + BATDIR: ci\appveyor\win64 |
43 | 29 |
|
44 | 30 | branches: |
45 | 31 | only: |
@@ -71,11 +57,8 @@ build_script: |
71 | 57 | # - C:\projects\julia\bin\julia -e "using PyCall; @assert isdefined(:PyCall); @assert typeof(PyCall) === Module" |
72 | 58 | - "SET PYTHON=%PYTHONDIR%\\python.exe" |
73 | 59 | - C:\projects\julia\bin\julia -e "versioninfo(); Pkg.add(\"PyCall\")" |
| 60 | + - "%PYTHONDIR%\\python.exe -m pip install --quiet tox" |
74 | 61 |
|
75 | 62 | test_script: |
76 | | - - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;C:\\projects\\julia\\bin;%PATH%" |
77 | | - - python --version |
78 | | - - dir |
79 | | - - ps: if (Test-Path Env:\CROSS_VERSION_PATH) { Invoke-Expression "$env:CROSS_VERSION_PATH -m unittest discover" } |
80 | | - # - python -c "import julia; julia.Julia(debug=True)" |
81 | | - - python -m unittest discover |
| 63 | + - "SET PATH=%cd%\\%BATDIR%;%PYTHONDIR%;%PYTHONDIR%\\Scripts;C:\\projects\\julia\\bin;%PATH%" |
| 64 | + - tox |
0 commit comments