Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
(cherry picked from commit 69406bf)
  • Loading branch information
KristofferC committed Aug 13, 2018
1 parent 0fc21a7 commit 299b355
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: julia

julia:
- 0.7
- 1.0
- nightly

os:
Expand Down
37 changes: 17 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
environment:
matrix:
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
- julia_version: 0.7
- julia_version: 1
- julia_version: nightly

platform:
- x86 # 32-bit
- x64 # 64-bit

# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
# matrix:
# allow_failures:
# - julia_version: latest

branches:
only:
Expand All @@ -15,24 +26,10 @@ notifications:
on_build_status_changed: false

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,
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
# Need to convert from shallow to complete for Pkg.clone to work
# We swap the uuid for Pkg here to make it not load the stdlib version of Pkg
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia --project -e "import InteractiveUtils; versioninfo();
- C:\julia\bin\julia -e "using InteractiveUtils; versioninfo();
using UUIDs;
before = read(\"Project.toml\", String);
after = replace(before, \"uuid = \\\"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\\\"\" =>
Expand All @@ -41,5 +38,5 @@ build_script:
import Pkg; Pkg.build()"

test_script:
- C:\projects\julia\bin\julia --project -e "import Pkg; Pkg.test(; coverage=true)"

- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

0 comments on commit 299b355

Please sign in to comment.