Skip to content

Commit 38f0b72

Browse files
committed
Drop 0.6 support
1 parent 82bf8f5 commit 38f0b72

File tree

7 files changed

+38
-58
lines changed

7 files changed

+38
-58
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 0.6
7+
- 0.7
8+
- 1.0
89
- nightly
910
notifications:
1011
email: false
12+
matrix:
13+
allow_failures:
14+
- julia: nightly
1115
# uncomment the following lines to override the default test script
1216
#script:
1317
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
julia 0.6
2-
Compat 0.47.0
1+
julia 0.7
32
BinDeps
43
VersionParsing
54
@osx Homebrew

appveyor.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
5-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
6-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
3+
- julia_version: 0.7
4+
- julia_version: 1
5+
- julia_version: nightly
6+
7+
platform:
8+
- x86 # 32-bit
9+
- x64 # 64-bit
10+
11+
matrix:
12+
allow_failures:
13+
- julia_version: nightly
714

815
branches:
916
only:
1017
- master
1118
- /release-.*/
1219

13-
skip_commits:
14-
message: /\[av skip\]/
15-
1620
notifications:
1721
- provider: Email
1822
on_build_success: false
1923
on_build_failure: false
2024
on_build_status_changed: false
2125

2226
install:
23-
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
24-
# If there's a newer build queued for the same PR, cancel this one
25-
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
26-
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
27-
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
28-
throw "There are newer queued builds for this pull request, failing early." }
29-
# Download most recent Julia Windows binary
30-
- ps: (new-object net.webclient).DownloadFile(
31-
$env:JULIA_URL,
32-
"C:\projects\julia-binary.exe")
33-
# Run installer silently, output to C:\projects\julia
34-
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
27+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
3528

3629
build_script:
37-
# Need to convert from shallow to complete for Pkg.clone to work
38-
- IF EXIST .git\shallow (git fetch --unshallow)
39-
- C:\projects\julia\bin\julia -e "versioninfo();
40-
Pkg.clone(pwd(), \"Git\"); Pkg.build(\"Git\")"
30+
- echo "%JL_BUILD_SCRIPT%"
31+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
4132

4233
test_script:
43-
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"Git\")"
34+
- echo "%JL_TEST_SCRIPT%"
35+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
36+
37+
# Uncomment to support code coverage upload. Should only be enabled for packages
38+
# which would have coverage gaps without running on Windows
39+
on_success:
40+
- echo "%JL_CODECOV_SCRIPT%"
41+
- C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"

deps/build.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using Compat
2-
using Compat: @info
3-
using Compat.Sys: isapple, islinux, iswindows
4-
1+
using Base.Sys: isapple, islinux, iswindows
52
using BinDeps
63
using BinDeps: download_cmd, unpack_cmd, splittarpath
74

src/Git.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module Git
44
#
55
# some utility functions for working with git repos
66
#
7-
using Compat
87
using Base: shell_escape
98
using VersionParsing
109
export gitcmd # determined by deps/build.jl and saved in deps/deps.jl

test/gitutils.jl

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
# This file was a part of Julia. License is MIT: http://julialang.org/license
22

3-
using Compat
4-
5-
if VERSION >= v"0.7.0-DEV.3427"
6-
function write_and_readchomp(data, cmd::Cmd)
7-
p = open(cmd, "r+")
8-
print(p.in, data)
9-
close(p.in)
10-
v = readchomp(p.out)
11-
wait(p)
12-
return v
13-
end
14-
else
15-
function write_and_readchomp(data, cmd::Cmd)
16-
r, w, p = readandwrite(cmd)
17-
print(w,data); close(w)
18-
v = readchomp(r)
19-
wait(p)
20-
return v
21-
end
3+
function write_and_readchomp(data, cmd::Cmd)
4+
p = open(cmd, "r+")
5+
print(p.in, data)
6+
close(p.in)
7+
v = readchomp(p.out)
8+
wait(p)
9+
return v
2210
end
2311

2412
function mktree(d::Dict)

test/runtests.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# This file was a part of Julia. License is MIT: http://julialang.org/license
22

33
using Git
4-
using Compat
5-
using Compat.Test
4+
using Test
65

76
include("gitutils.jl")
87

@@ -24,11 +23,7 @@ mktempdir() do dir
2423

2524
contents = [nothing, "foo", "bar", Dict{Any,Any}("baz"=>"qux")]
2625
b = length(contents)
27-
@static if VERSION >= v"0.7.0"
28-
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]
29-
else
30-
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]
31-
end
26+
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]
3227

3328
git_setup(states[1:3]...)
3429
try Git.transact() do

0 commit comments

Comments
 (0)