Skip to content

Commit

Permalink
better build script
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Sep 27, 2015
1 parent fa44ddd commit d815aac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions appveyor.yml
Expand Up @@ -10,8 +10,12 @@ branches:
- master
- /release-.*/
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")
Expand All @@ -21,8 +25,8 @@ install:
build_script:
# Need to convert from shallow to complete for Pkg.clone to work
# - git fetch --unshallow
- C:\projects\julia\bin\julia-debug -e "versioninfo(); Pkg.init(); Pkg.clone(\"https://github.com/JuliaIO/FileIO.jl.git\")"
- C:\projects\julia\bin\julia-debug -e "Pkg.clone(\"Images\"); Pkg.checkout(\"Images\", \"sd/fileio\")"
- C:\projects\julia\bin\julia-debug -e "versioninfo(); Pkg.init(); Pkg.clone(\"https://github.com/JuliaIO/FileIO.jl.git\", \"FileIO\"")"
- C:\projects\julia\bin\julia-debug -e "Pkg.clone(\"Images\"); Pkg.checkout(\"Images\", \"sd/fileio2\")"
- C:\projects\julia\bin\julia-debug -e "Pkg.clone(pwd(), \"ImageMagick\"); Pkg.build(\"ImageMagick\")"

test_script:
Expand Down

0 comments on commit d815aac

Please sign in to comment.