Skip to content

Commit

Permalink
tweak appveyor script
Browse files Browse the repository at this point in the history
  • Loading branch information
RalphAS committed Jul 13, 2018
1 parent 6cdf1a0 commit 3beaecd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ branches:
- /release-.*/
install:
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
# if there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$env:JULIA_URL,
Expand All @@ -21,7 +26,8 @@ install:
build_script:
# Need to convert from shallow to complete for Pkg.clone to work
# - git fetch --unshallow
- C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo(); import Pkg; Pkg.develop(pwd())"
- C:\projects\julia\bin\julia -e "using InteractiveUtils; versioninfo(); import Pkg;
Pkg.clone(pwd(), \"FileIO\"); Pkg.build(\"FileIO\")"

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

0 comments on commit 3beaecd

Please sign in to comment.