Skip to content

Commit 5d7bb58

Browse files
authored
Merge pull request #11 from rdeits/v0.7
switch to Julia v0.7
2 parents 07bd4de + add7ef3 commit 5d7bb58

File tree

6 files changed

+25
-28
lines changed

6 files changed

+25
-28
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ language: julia
33
matrix:
44
include:
55
- os: linux
6-
julia: 0.6
6+
julia: 0.7
77
- os: linux
88
julia: nightly
99
- os: linux
10-
julia: 0.6
10+
julia: 0.7
1111
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
1212
- os: linux
1313
julia: nightly
1414
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
1515
- os: osx
16-
julia: 0.6
16+
julia: 0.7
1717
- os: osx
18-
julia: 0.6
18+
julia: 0.7
1919
env: "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE=1"
20-
allow_failures:
21-
- julia: nightly
20+
# allow_failures:
21+
# - julia: nightly
2222
notifications:
2323
email: false
2424
branches:

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
julia 0.6
1+
julia 0.7-alpha
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.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"
3+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
4+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-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: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
using BinDeps
22
using BinDeps: MakeTargets
3-
using Compat
43

54
basedir = dirname(@__FILE__)
65
prefix = joinpath(basedir, "usr")
76

87
cmake_version = v"3.7.2"
98
base_url = "https://cmake.org/files/v$(cmake_version.major).$(cmake_version.minor)"
10-
@static if Compat.Sys.iswindows()
9+
@static if Sys.iswindows()
1110
binary_name = "cmake.exe"
1211
else
1312
binary_name = "cmake"
@@ -18,18 +17,18 @@ function install_binaries(file_base, file_ext, binary_dir)
1817
url = "$(base_url)/$(filename)"
1918
binary_path = joinpath(basedir, "downloads", file_base, binary_dir)
2019

21-
@static if Compat.Sys.iswindows()
20+
@static if Sys.iswindows()
2221
install_step = () -> begin
2322
for dir in readdir(dirname(binary_path))
24-
cp(joinpath(dirname(binary_path), dir),
23+
cp(joinpath(dirname(binary_path), dir),
2524
joinpath(prefix, dir);
2625
remove_destination=true)
2726
end
2827
end
2928
else
3029
install_step = () -> begin
3130
for file in readdir(binary_path)
32-
symlink(joinpath(binary_path, file),
31+
symlink(joinpath(binary_path, file),
3332
joinpath(prefix, "bin", file))
3433
end
3534
end
@@ -49,11 +48,11 @@ To build from source instead, run:
4948
end
5049
end
5150
(@build_steps begin
52-
FileRule(joinpath(prefix, "bin", binary_name),
51+
FileRule(joinpath(prefix, "bin", binary_name),
5352
(@build_steps begin
5453
FileDownloader(url, joinpath(basedir, "downloads", filename))
5554
FileUnpacker(joinpath(basedir, "downloads", filename),
56-
joinpath(basedir, "downloads"),
55+
joinpath(basedir, "downloads"),
5756
"")
5857
CreateDirectory(joinpath(prefix, "bin"))
5958
install_step
@@ -67,12 +66,12 @@ function install_from_source(file_base, file_ext)
6766
url = "$(base_url)/$(filename)"
6867

6968
(@build_steps begin
70-
FileRule(joinpath(prefix, "bin", binary_name),
69+
FileRule(joinpath(prefix, "bin", binary_name),
7170
(@build_steps begin
7271
FileDownloader(url, joinpath(basedir, "downloads", filename))
7372
CreateDirectory(joinpath(basedir, "src"))
7473
FileUnpacker(joinpath(basedir, "downloads", filename),
75-
joinpath(basedir, "src"),
74+
joinpath(basedir, "src"),
7675
"")
7776
begin
7877
ChangeDirectory(joinpath(basedir, "src", file_base))
@@ -86,7 +85,7 @@ end
8685

8786
force_source_build = lowercase(get(ENV, "CMAKEWRAPPER_JL_BUILD_FROM_SOURCE", "")) in ["1", "true"]
8887

89-
process = @static if Compat.Sys.islinux()
88+
process = @static if Sys.islinux()
9089
if Sys.ARCH == :x86_64 && !force_source_build
9190
install_binaries(
9291
"cmake-$(cmake_version)-Linux-x86_64",
@@ -95,7 +94,7 @@ process = @static if Compat.Sys.islinux()
9594
else
9695
install_from_source("cmake-$(cmake_version)", "tar.gz")
9796
end
98-
elseif Compat.Sys.isapple()
97+
elseif Sys.isapple()
9998
if !force_source_build
10099
install_binaries(
101100
"cmake-$(cmake_version)-Darwin-x86_64",
@@ -104,7 +103,7 @@ elseif Compat.Sys.isapple()
104103
else
105104
install_from_source("cmake-$(cmake_version)", "tar.gz")
106105
end
107-
elseif Compat.Sys.iswindows()
106+
elseif Sys.iswindows()
108107
if sizeof(Int) == 8
109108
install_binaries(
110109
"cmake-$(cmake_version)-win64-x64",

src/CMakeWrapper.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using BinDeps: BuildProcess,
1212
builddir,
1313
stringarray,
1414
adjust_env
15-
using Compat
15+
using Libdl
1616
import BinDeps: lower,
1717
provider,
1818
generate_steps
@@ -72,7 +72,7 @@ provider(::Type{CMakeProcess}, cm::CMakeProcess; opts...) = cm
7272
function generate_steps(dep::LibraryDependency, h::CMakeProcess, provider_opts)
7373
# Shamelessly copied from BinDeps.jl, which is distributed under
7474
# the MIT License, and Copyright (c) 2012: Keno Fischer and other
75-
# contributors. See LICENSE.md for license terms.
75+
# contributors. See LICENSE.md for license terms.
7676
if h.source === nothing
7777
h.source = gethelper(dep,Sources)
7878
end
@@ -98,9 +98,9 @@ function generate_steps(dep::LibraryDependency, h::CMakeProcess, provider_opts)
9898
opts[:libtarget] = String[x*"."*dlext for x in stringarray(dep.properties[:aliases])]
9999
end
100100
env = Dict{String,String}()
101-
if Compat.Sys.isunix()
101+
if Sys.isunix()
102102
env["PATH"] = bindir(dep)*":"*ENV["PATH"]
103-
elseif Compat.Sys.iswindows()
103+
elseif Sys.iswindows()
104104
env["PATH"] = bindir(dep)*";"*ENV["PATH"]
105105
end
106106
haskey(opts,:env) && merge!(env,opts[:env])

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using CMakeWrapper
22
using BinDeps
3-
using Compat
4-
using Compat.Test
3+
using Test
54

65

76
@test isfile(cmake_executable)

0 commit comments

Comments
 (0)