Skip to content

Commit

Permalink
Merge pull request #962 from tkelman/patch-1
Browse files Browse the repository at this point in the history
modernize appveyor
  • Loading branch information
nalimilan committed Jun 3, 2016
2 parents 921cbd0 + 8a919a5 commit 3400fbc
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
environment:
matrix:
# Releases
- JULIAVERSION: "stable/win32"
- JULIAVERSION: "stable/win64"
# Nightlies
# - JULIAVERSION: "download/win32"
# - JULIAVERSION: "download/win64"
- JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe"
- JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
Expand All @@ -14,15 +17,23 @@ notifications:
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://status.julialang.org/"+$env:JULIAVERSION), "C:\projects\julia-binary.exe")
- 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:
# 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 "versioninfo(); Pkg.clone(pwd(), \"DataFrames\"); Pkg.build(\"DataFrames\")"
- C:\projects\julia\bin\julia -F -e "versioninfo();
Pkg.clone(pwd(), \"DataFrames\"); Pkg.build(\"DataFrames\")"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"DataFrames\")"

0 comments on commit 3400fbc

Please sign in to comment.