-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from crstnbr/v1.0
Julia 1.0 support
- Loading branch information
Showing
7 changed files
with
93 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
julia 0.6 | ||
Compat 0.8.4 | ||
julia 0.7 | ||
BinDeps | ||
VersionParsing | ||
@osx Homebrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,41 @@ | ||
environment: | ||
matrix: | ||
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe" | ||
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe" | ||
- 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 | ||
|
||
matrix: | ||
allow_failures: | ||
- julia_version: nightly | ||
|
||
branches: | ||
only: | ||
- master | ||
- /release-.*/ | ||
|
||
skip_commits: | ||
message: /\[av skip\]/ | ||
|
||
notifications: | ||
- provider: Email | ||
on_build_success: false | ||
on_build_failure: false | ||
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 | ||
- IF EXIST .git\shallow (git fetch --unshallow) | ||
- C:\projects\julia\bin\julia -e "versioninfo(); | ||
Pkg.clone(pwd(), \"Git\"); Pkg.build(\"Git\")" | ||
- echo "%JL_BUILD_SCRIPT%" | ||
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%" | ||
|
||
test_script: | ||
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"Git\")" | ||
- echo "%JL_TEST_SCRIPT%" | ||
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%" | ||
|
||
# Uncomment to support code coverage upload. Should only be enabled for packages | ||
# which would have coverage gaps without running on Windows | ||
on_success: | ||
- echo "%JL_CODECOV_SCRIPT%" | ||
- C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,37 @@ | ||
# This file was a part of Julia. License is MIT: http://julialang.org/license | ||
|
||
using Git | ||
using Base.Test | ||
using Test | ||
|
||
include("gitutils.jl") | ||
|
||
@test Git.version() >= v"1.7.3" | ||
|
||
dir = string("tmp.",randstring()) | ||
@test !ispath(dir) | ||
mkdir(dir) | ||
@test isdir(dir) | ||
try cd(dir) do | ||
run(`$gitcmd init -q`) | ||
run(`$gitcmd config user.name "Julia Tester"`) | ||
run(`$gitcmd config user.email [email protected]`) | ||
run(`$gitcmd commit -q --allow-empty -m "initial empty commit"`) | ||
git_verify(Dict(), Dict(), Dict()) | ||
mktempdir() do dir | ||
cd(dir) do | ||
run(`$gitcmd init -q`) | ||
run(`$gitcmd config user.name "Julia Tester"`) | ||
run(`$gitcmd config user.email [email protected]`) | ||
run(`$gitcmd commit -q --allow-empty -m "initial empty commit"`) | ||
git_verify(Dict(), Dict(), Dict()) | ||
|
||
# each path can have one of these content in each of head, index, work | ||
# for a total of length(contents)^3 = 4^3 = 64 combinations. | ||
# each path can be in any of these 64 "superpositions" before & after | ||
# for a total of 64^2 = 4096 files needed to test all transitions | ||
# between before and after superpositions of git repo states. | ||
# each path can have one of these content in each of head, index, work | ||
# for a total of length(contents)^3 = 4^3 = 64 combinations. | ||
# each path can be in any of these 64 "superpositions" before & after | ||
# for a total of 64^2 = 4096 files needed to test all transitions | ||
# between before and after superpositions of git repo states. | ||
|
||
contents = [nothing, "foo", "bar", Dict{Any,Any}("baz"=>"qux")] | ||
b = length(contents) | ||
states = [Dict([(base(b,k,6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] | ||
contents = [nothing, "foo", "bar", Dict{Any,Any}("baz"=>"qux")] | ||
b = length(contents) | ||
states = [Dict([(string(k, base=b, pad=6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] | ||
|
||
git_setup(states[1:3]...) | ||
try Git.transact() do | ||
git_setup(states[4:6]...) | ||
throw(nothing) | ||
end catch x | ||
x === nothing || rethrow() | ||
git_setup(states[1:3]...) | ||
try Git.transact() do | ||
git_setup(states[4:6]...) | ||
throw(nothing) | ||
end catch x | ||
x === nothing || rethrow() | ||
end | ||
git_verify(states[1:3]...) | ||
end | ||
git_verify(states[1:3]...) | ||
end | ||
finally | ||
rm(dir, recursive=true) | ||
end |