File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,13 @@ install:
64
64
# Install the generated wheel package to test it
65
65
- " pip install --pre --no-index --find-links dist/ scikit-learn"
66
66
67
+ # If there is a newer build queued for the same PR, cancel this one.
68
+ # credits: JuliaLang developers.
69
+ - ps : if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
70
+ https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=500).builds | `
71
+ Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
72
+ throw "There are newer queued builds for this pull request, failing early." }
73
+
67
74
# Not a .NET project, we build scikit-learn in the install step instead
68
75
build : false
69
76
You can’t perform that action at this time.
0 commit comments