|
1 | 1 | environment:
|
2 | 2 | matrix:
|
3 |
| -# Releases |
4 |
| - - JULIAVERSION: "stable/win32" |
5 |
| - - JULIAVERSION: "stable/win64" |
6 |
| -# Nightlies |
7 |
| - - JULIAVERSION: "download/win32" |
8 |
| - - JULIAVERSION: "download/win64" |
| 3 | + - JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe" |
| 4 | + - JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe" |
| 5 | + - JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe" |
| 6 | + - JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe" |
| 7 | + - JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe" |
| 8 | + - JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe" |
| 9 | + |
| 10 | +branches: |
| 11 | + only: |
| 12 | + - master |
| 13 | + - /release-.*/ |
| 14 | + |
| 15 | +notifications: |
| 16 | + - provider: Email |
| 17 | + on_build_success: false |
| 18 | + on_build_failure: false |
| 19 | + on_build_status_changed: false |
9 | 20 |
|
10 | 21 | install:
|
| 22 | +# if there's a newer build queued for the same PR, cancel this one |
| 23 | + - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` |
| 24 | + https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` |
| 25 | + Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` |
| 26 | + throw "There are newer queued builds for this pull request, failing early." } |
11 | 27 | # Download most recent Julia Windows binary
|
12 |
| - - ps: (new-object net.webclient).DownloadFile($("http://status.julialang.org/"+$env:JULIAVERSION), "C:\projects\julia-binary.exe") |
| 28 | + - ps: (new-object net.webclient).DownloadFile( |
| 29 | + $("http://s3.amazonaws.com/"+$env:JULIAVERSION), |
| 30 | + "C:\projects\julia-binary.exe") |
13 | 31 | # Run installer silently, output to C:\projects\julia
|
14 | 32 | - C:\projects\julia-binary.exe /S /D=C:\projects\julia
|
15 | 33 |
|
16 | 34 | build_script:
|
17 | 35 | # Need to convert from shallow to complete for Pkg.clone to work
|
18 | 36 | - IF EXIST .git\shallow (git fetch --unshallow)
|
19 |
| - - C:\projects\julia\bin\julia -e "versioninfo(); Pkg.init(); Pkg.clone(pwd(), \"SQLite\"); Pkg.build(\"SQLite\")" |
| 37 | + - C:\projects\julia\bin\julia -e "versioninfo(); |
| 38 | + Pkg.clone(pwd(), \"SQLite\"); Pkg.build(\"SQLite\")" |
20 | 39 |
|
21 | 40 | test_script:
|
22 |
| - - C:\projects\julia\bin\julia test\runtests.jl |
| 41 | + - C:\projects\julia\bin\julia -e "Pkg.test(\"SQLite\")" |
0 commit comments