-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
61 lines (51 loc) · 2.74 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
environment:
matrix:
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-1.0-latest-win64.exe"
GAMS_URL: "https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.3/windows/windows_x64_64.exe"
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/1.3/julia-1.3-latest-win64.exe"
GAMS_URL: "https://d37drm4t2jghv5.cloudfront.net/distributions/25.1.3/windows/windows_x64_64.exe"
PATH: 'C:\projects\gams;%PATH%'
## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
# - JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
branches:
only:
- master
#cache:
# - C:\projects\windows_x64_64.exe -> appveyor.yml
# - C:\projects\gams ->appveyor.yml
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
install:
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
# 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(
$env:JULIA_URL,
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
- ps: (new-object net.webclient).DownloadFile(
$env:GAMS_URL,
"C:\projects\windows_x64_64.exe")
- C:\projects\windows_x64_64.exe /VERYSILENT /SP- /SUPPESSMSGBOXES /DIR="C:\projects\gams"
build_script:
# Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo()"
- C:\projects\julia\bin\julia -e "using Pkg; Pkg.clone(\"https://github.com/xhub/ReSHOP.jl\");
Pkg.build(\"ReSHOP\"); Pkg.clone(pwd(), \"EMP\"); Pkg.build(\"EMP\")"
test_script:
- C:\projects\julia\bin\julia -e "using Pkg; Pkg.test(\"EMP\")"