Skip to content

Commit 422a934

Browse files
authored
Merge pull request #137 from tlycken/teh/travis
Test v0.4 on Travis
2 parents f00ccf5 + 1807906 commit 422a934

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: julia
22
sudo: false
33
julia:
4+
- 0.4
45
- 0.5
5-
- release
66
- nightly
77
matrix:
88
- allow_failures:

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ WoodburyMatrices 0.1.5
44
Ratios
55
AxisAlgorithms
66
Compat 0.8.0
7+
DualNumbers

test/REQUIRE

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/b-splines/mixed.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@ for (constructor, copier) in ((interpolate, x->x), (interpolate!, copy))
2626
end
2727

2828
# AbstractArrays
29+
if VERSION < v"0.5.0"
30+
makesharedarray{T}(::Type{T}, dims; kwargs...) = SharedArray(T, dims; kwargs...)
31+
else
32+
makesharedarray{T}(::Type{T}, dims; kwargs...) = SharedArray{T}(dims; kwargs...)
33+
end
2934
function copyshared(A)
30-
B = SharedArray{eltype(A)}( size(A))
35+
B = makesharedarray(eltype(A), size(A))
3136
copy!(B, A)
3237
end
3338

3439
for (constructor, copier) in ((interpolate, x->x), (interpolate!, copyshared))
35-
A2 = SharedArray{Float64}( (N,N), init=A->rand!(A))
40+
A2 = makesharedarray(Float64, (N,N), init=A->rand!(A))
3641
for i = 1:length(A2)
3742
A2[i] *= 100
3843
end
@@ -59,4 +64,4 @@ for (constructor, copier) in ((interpolate, x->x), (interpolate!, copyshared))
5964
end
6065
end
6166

62-
end
67+
end

0 commit comments

Comments
 (0)