Skip to content

Commit 07bd4de

Browse files
authored
Merge pull request #8 from rdeits/drop-0.5
Drop Julia v0.5 and fix deprecations on v0.7
2 parents 6537792 + fae0dce commit 07bd4de

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,23 @@
22
language: julia
33
matrix:
44
include:
5-
- os: linux
6-
julia: 0.5
75
- os: linux
86
julia: 0.6
97
- os: linux
108
julia: nightly
119
- os: linux
12-
julia: 0.5
10+
julia: 0.6
1311
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
1412
- os: linux
1513
julia: nightly
1614
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
17-
- os: osx
18-
julia: 0.5
1915
- os: osx
2016
julia: 0.6
2117
- os: osx
22-
julia: 0.5
18+
julia: 0.6
2319
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
20+
allow_failures:
21+
- julia: nightly
2422
notifications:
2523
email: false
2624
branches:

REQUIRE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
julia 0.5
1+
julia 0.6
22
BinDeps 0.4
33
Parameters 0.5
4+
Compat 0.33

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
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"
55
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
66
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
77

deps/build.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
using BinDeps
22
using BinDeps: MakeTargets
3+
using Compat
34

45
basedir = dirname(@__FILE__)
56
prefix = joinpath(basedir, "usr")
67

78
cmake_version = v"3.7.2"
89
base_url = "https://cmake.org/files/v$(cmake_version.major).$(cmake_version.minor)"
9-
@static if is_windows()
10+
@static if Compat.Sys.iswindows()
1011
binary_name = "cmake.exe"
1112
else
1213
binary_name = "cmake"
@@ -17,7 +18,7 @@ function install_binaries(file_base, file_ext, binary_dir)
1718
url = "$(base_url)/$(filename)"
1819
binary_path = joinpath(basedir, "downloads", file_base, binary_dir)
1920

20-
@static if is_windows()
21+
@static if Compat.Sys.iswindows()
2122
install_step = () -> begin
2223
for dir in readdir(dirname(binary_path))
2324
cp(joinpath(dirname(binary_path), dir),
@@ -85,7 +86,7 @@ end
8586

8687
force_source_build = lowercase(get(ENV, "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE", "")) in ["1", "true"]
8788

88-
process = @static if is_linux()
89+
process = @static if Compat.Sys.islinux()
8990
if Sys.ARCH == :x86_64 && !force_source_build
9091
install_binaries(
9192
"cmake-$(cmake_version)-Linux-x86_64",
@@ -94,7 +95,7 @@ process = @static if is_linux()
9495
else
9596
install_from_source("cmake-$(cmake_version)", "tar.gz")
9697
end
97-
elseif is_apple()
98+
elseif Compat.Sys.isapple()
9899
if !force_source_build
99100
install_binaries(
100101
"cmake-$(cmake_version)-Darwin-x86_64",
@@ -103,7 +104,7 @@ elseif is_apple()
103104
else
104105
install_from_source("cmake-$(cmake_version)", "tar.gz")
105106
end
106-
elseif is_windows()
107+
elseif Compat.Sys.iswindows()
107108
if sizeof(Int) == 8
108109
install_binaries(
109110
"cmake-$(cmake_version)-win64-x64",

src/CMakeWrapper.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using BinDeps: BuildProcess,
1212
builddir,
1313
stringarray,
1414
adjust_env
15+
using Compat
1516
import BinDeps: lower,
1617
provider,
1718
generate_steps
@@ -26,7 +27,7 @@ end
2627

2728
const dlext = Libdl.dlext
2829

29-
@with_kw type CMakeBuild <: BuildStep
30+
@with_kw struct CMakeBuild <: BuildStep
3031
srcdir::AbstractString = ""
3132
builddir::AbstractString = ""
3233
prefix::AbstractString = ""
@@ -59,7 +60,7 @@ function lower(s::CMakeBuild, collection)
5960
end
6061
end
6162

62-
type CMakeProcess <: BuildProcess
63+
mutable struct CMakeProcess <: BuildProcess
6364
source
6465
opts
6566
end
@@ -97,9 +98,9 @@ function generate_steps(dep::LibraryDependency, h::CMakeProcess, provider_opts)
9798
opts[:libtarget] = String[x*"."*dlext for x in stringarray(dep.properties[:aliases])]
9899
end
99100
env = Dict{String,String}()
100-
if is_unix()
101+
if Compat.Sys.isunix()
101102
env["PATH"] = bindir(dep)*":"*ENV["PATH"]
102-
elseif is_windows()
103+
elseif Compat.Sys.iswindows()
103104
env["PATH"] = bindir(dep)*";"*ENV["PATH"]
104105
end
105106
haskey(opts,:env) && merge!(env,opts[:env])

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using CMakeWrapper
22
using BinDeps
3-
using Base.Test
3+
using Compat
4+
using Compat.Test
45

56

67
@test isfile(cmake_executable)

0 commit comments

Comments
 (0)