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:
11
11
- /release-.*/
12
12
install :
13
13
- 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." }
14
19
# Download most recent Julia Windows binary
15
20
- ps : (new-object net.webclient).DownloadFile(
16
21
$env:JULIA_URL,
@@ -21,7 +26,8 @@ install:
21
26
build_script :
22
27
# Need to convert from shallow to complete for Pkg.clone to work
23
28
# - 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\")"
25
31
26
32
test_script :
27
33
- C:\projects\julia\bin\julia -e "import Pkg; Pkg.test(\"FileIO\")"
You can’t perform that action at this time.
0 commit comments