Skip to content

Commit 3beaecd

Browse files
committed
tweak appveyor script
1 parent 6cdf1a0 commit 3beaecd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

appveyor.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ branches:
1111
- /release-.*/
1212
install:
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:
2126
build_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

2632
test_script:
2733
- C:\projects\julia\bin\julia -e "import Pkg; Pkg.test(\"FileIO\")"

0 commit comments

Comments
 (0)