Skip to content

Commit

Permalink
Add 0.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Jun 8, 2017
1 parent 9bdb283 commit f6b86ab
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ os:
- linux
- osx
julia:
- release
- 0.5
- 0.6
- nightly
notifications:
email: false
Expand Down
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
julia 0.5
Compat 0.25.2
DataStructures 0.5.3
StaticArrays 0.3.0
12 changes: 7 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
environment:
matrix:
- JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
- JULIAVERSION: "https://julialang-s3.julialang.org/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
- JULIAVERSION: "https://julialang-s3.julialang.org/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
- JULIAVERSION: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
- JULIAVERSION: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
- JULIAVERSION: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
- JULIAVERSION: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"

branches:
only:
Expand All @@ -19,7 +21,7 @@ notifications:
install:
# Download most recent Julia Windows binary
- ps: (new-object net.webclient).DownloadFile(
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
$env:JULIAVERSION
"C:\projects\julia-binary.exe")
# Run installer silently, output to C:\projects\julia
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
Expand Down
1 change: 1 addition & 0 deletions src/NIntegration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module NIntegration


### Dependencies
using Compat
using DataStructures
using StaticArrays

Expand Down
21 changes: 15 additions & 6 deletions src/types.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
type Box{T}
x::T
if VERSION < v"0.6.0-dev.2618"
type Box{T}
x::T

Box() = new()
Box(x) = new(x)
Box() = new()
Box(x) = new(x)
end
else
@compat mutable struct Box{T}
x::T

Box{T}() where {T} = new()
Box{T}(x::T) where {T} = new(x)
end
end
(::Type{Box}){T}(x::T) = Box{T}(x)

immutable Region{N,T<:AbstractFloat,R}
@compat struct Region{N,T<:AbstractFloat,R}
x::MVector{N,T} # center
h::MVector{N,T} # half-width
I::Box{R}
Expand All @@ -24,7 +33,7 @@ Base.isequal{N}(r₁::Region{N}, r₂::Region{N}) = isequal(r₁.E.x, r₂.E.x)

Base.show(io::IO, r::Region) = print(io, '(', r.x, ", ", r.h, ')')

immutable Regions{R<:Region}
@compat struct Regions{R<:Region}
v::Vector{R}
end

Expand Down
26 changes: 0 additions & 26 deletions travis.yml

This file was deleted.

0 comments on commit f6b86ab

Please sign in to comment.