File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ notifications:
20
20
on_build_status_changed : false
21
21
22
22
install :
23
+ # If there's a newer build queued for the same PR, cancel this one
24
+ - ps : if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
25
+ https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
26
+ Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
27
+ throw "There are newer queued builds for this pull request, failing early." }
23
28
# Download most recent Julia Windows binary
24
29
- ps : (new-object net.webclient).DownloadFile(
25
30
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
You can’t perform that action at this time.
0 commit comments