File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ branches:
1111 - /release-.*/
1212install :
1313 - ps : " [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
14+ # if there's a newer build queued for the same PR, cancel this one
15+ - ps : if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
16+ https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
17+ Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
18+ throw "There are newer queued builds for this pull request, failing early." }
1419# Download most recent Julia Windows binary
1520 - ps : (new-object net.webclient).DownloadFile(
1621 $env:JULIA_URL,
@@ -21,7 +26,8 @@ install:
2126build_script :
2227# Need to convert from shallow to complete for Pkg.clone to work
2328# - git fetch --unshallow
24- - C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo(); import Pkg; Pkg.develop(pwd())"
29+ - C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo(); import Pkg;
30+ Pkg.clone(pwd(), \"FileIO\"); Pkg.build(\"FileIO\")"
2531
2632test_script :
2733 - C:\projects\julia\bin\julia -e "import Pkg; Pkg.test(\"FileIO\")"
You can’t perform that action at this time.
0 commit comments