forked from JuliaPy/pyjulia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
97 lines (81 loc) · 3.91 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
environment:
# for more python versions have a look at
# https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
matrix:
# - JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe"
# PYTHONDIR: "C:\\Python27"
# PYTHON: "C:\\Python27\\python.exe"
# - JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe"
# PYTHONDIR: "C:\\Python27"
# PYTHON: "C:\\Python27\\python.exe"
# - JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
# PYTHONDIR: "C:\\Python27"
# PYTHON: "C:\\Python27\\python.exe"
# 64 julia-0.5 Python-27
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
PYTHONDIR: "C:\\Python27-x64"
# 32 julia-0.5 Python-27
- JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
PYTHONDIR: "C:\\Python27"
# 64 julia-0.5 Python-35
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
PYTHONDIR: "C:\\Python35-x64"
# 64 julia-0.6 Python-27
- JULIAVERSION: "julialang/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
PYTHONDIR: "C:\\Python27-x64"
# 32 julia-0.6 Python-27
- JULIAVERSION: "julialang/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
PYTHONDIR: "C:\\Python27"
# 64 julia-0.6 Python-35
- JULIAVERSION: "julialang/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
PYTHONDIR: "C:\\Python35-x64"
# 32 julia-latest Python-27
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
PYTHONDIR: "C:\\Python27"
# 64 julia-latest Python-27
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
PYTHONDIR: "C:\\Python27-x64"
# 64 julia latest Python-35
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
PYTHONDIR: "C:\\Python35-x64"
# 64 julia latest Cross Version
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
PYTHONDIR: "C:\\Python35-x64"
CROSS_VERSION_PATH: "C:\\Python27-x64"
# 32 julia latest Cross Version
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
PYTHONDIR: "C:\\Python35"
CROSS_VERSION_PATH: "C:\\Python27"
branches:
only:
- master
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
install:
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
build_script:
- "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
- "\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\editbin.exe\" %PYTHONDIR%\\python.exe /STACK:8000000"
# - C:\projects\julia\bin\julia -e "versioninfo(); Pkg.add(\"PyCall\"); Pkg.init(); Pkg.resolve()"
# - C:\projects\julia\bin\julia -e "using PyCall; @assert isdefined(:PyCall); @assert typeof(PyCall) === Module"
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.add(\"PyCall\"); Pkg.checkout(\"PyCall\"); Pkg.build(\"PyCall\")"
test_script:
- "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;C:\\projects\\julia\\bin;%PATH%"
- python --version
- dir
- ps: if (Test-Path Env:\CROSS_VERSION_PATH) { Invoke-Expression "$env:CROSS_VERSION_PATH -m unittest discover" }
# - python -c "import julia; julia.Julia(debug=True)"
- python -m unittest discover