Skip to content

Commit 58c1771

Browse files
add appveyor
1 parent bcde96f commit 58c1771

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HierarchicalMatrices.jl
22

3-
[![Build Status](https://travis-ci.org/MikaelSlevinsky/HierarchicalMatrices.jl.svg?branch=master)](https://travis-ci.org/MikaelSlevinsky/HierarchicalMatrices.jl)
3+
[![Build Status](https://travis-ci.org/MikaelSlevinsky/HierarchicalMatrices.jl.svg?branch=master)](https://travis-ci.org/MikaelSlevinsky/HierarchicalMatrices.jl) [![AppVeyor](https://ci.appveyor.com/api/projects/status/qge6qn99t4xhlxmo/branch/master?svg=true)](https://ci.appveyor.com/project/MikaelSlevinsky/hierarchicalmatrices-jl/branch/master)
44

55
This package provides a flexible framework for hierarchical data types in Julia.
66

appveyor.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
environment:
22
matrix:
3-
- JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
4-
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
5-
- JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
6-
- JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
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"
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"
77

88
branches:
99
only:
@@ -17,9 +17,15 @@ notifications:
1717
on_build_status_changed: false
1818

1919
install:
20+
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
21+
# If there's a newer build queued for the same PR, cancel this one
22+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
23+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
24+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
25+
throw "There are newer queued builds for this pull request, failing early." }
2026
# Download most recent Julia Windows binary
2127
- ps: (new-object net.webclient).DownloadFile(
22-
$("http://s3.amazonaws.com/"+$env:JULIAVERSION),
28+
$env:JULIA_URL,
2329
"C:\projects\julia-binary.exe")
2430
# Run installer silently, output to C:\projects\julia
2531
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
@@ -31,4 +37,4 @@ build_script:
3137
Pkg.clone(pwd(), \"HierarchicalMatrices\"); Pkg.build(\"HierarchicalMatrices\")"
3238

3339
test_script:
34-
- C:\projects\julia\bin\julia -e "Pkg.test(\"HierarchicalMatrices\")"
40+
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"HierarchicalMatrices\")"

src/BarycentricMatrix.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
size(B::AbstractBarycentricMatrix) = (B.b-B.a+1, B.d-B.c+1)
44

55
immutable EvenBarycentricMatrix{T} <: AbstractBarycentricMatrix{T}
6-
a::Int64
7-
b::Int64
8-
c::Int64
9-
d::Int64
6+
a::Int
7+
b::Int
8+
c::Int
9+
d::Int
1010
x::Vector{T}
1111
λ::Vector{T}
1212
w::Vector{T}
@@ -15,7 +15,7 @@ immutable EvenBarycentricMatrix{T} <: AbstractBarycentricMatrix{T}
1515
F::Matrix{T}
1616
end
1717

18-
function EvenBarycentricMatrix{T}(::Type{T}, f::Function, a::Int64, b::Int64, c::Int64, d::Int64)
18+
function EvenBarycentricMatrix{T}(::Type{T}, f::Function, a::Int, b::Int, c::Int, d::Int)
1919
n = BLOCKRANK(T)
2020
x = chebyshevpoints(T, n)
2121
λ = chebyshevbarycentricweights(T, n)
@@ -58,7 +58,7 @@ function getindex{T}(B::EvenBarycentricMatrix{T}, i::Int, j::Int)
5858
end
5959

6060

61-
function barycentricmatrix{T}(::Type{T}, f::Function, a::Int64, b::Int64, c::Int64, d::Int64)
61+
function barycentricmatrix{T}(::Type{T}, f::Function, a::Int, b::Int, c::Int, d::Int)
6262
n = BLOCKRANK(T)
6363
x = chebyshevpoints(T, n)
6464
λ = chebyshevbarycentricweights(T, n)

0 commit comments

Comments
 (0)