Skip to content

Commit ef2b420

Browse files
committed
Use tox in AppVeyor
1 parent dee6c97 commit ef2b420

File tree

5 files changed

+21
-34
lines changed

5 files changed

+21
-34
lines changed

appveyor.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,31 @@
11
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+
27
# for more python versions have a look at
38
# https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
49
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
814

9-
# 32 julia-0.6 Python-27
15+
# 32 julia latest Python-35
1016
- 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
1219

1320
# 64 julia-0.6 Python-35
1421
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
1522
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
2424

2525
# 64 julia latest Python-35
2626
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
2727
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
4329

4430
branches:
4531
only:
@@ -71,11 +57,8 @@ build_script:
7157
# - C:\projects\julia\bin\julia -e "using PyCall; @assert isdefined(:PyCall); @assert typeof(PyCall) === Module"
7258
- "SET PYTHON=%PYTHONDIR%\\python.exe"
7359
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.add(\"PyCall\")"
60+
- "%PYTHONDIR%\\python.exe -m pip install --quiet tox"
7461

7562
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

ci/appveyor/win32/python2.7.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Python27\Scripts\python.exe

ci/appveyor/win32/python3.5.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Python35\Scripts\python.exe

ci/appveyor/win64/python2.7.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Python27-x64\Scripts\python.exe

ci/appveyor/win64/python3.5.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Python35-x64\Scripts\python.exe

0 commit comments

Comments
 (0)