Skip to content

Commit

Permalink
Merge 8f895c2 into 24e4289
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Aug 22, 2018
2 parents 24e4289 + 8f895c2 commit aedc305
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 51 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
@@ -1,12 +1,12 @@
language: julia

os:
- linux

julia:
- 0.6
before_script:
- julia --color=yes -e 'Pkg.clone("https://github.com/JuliaFEM/PkgTestSuite.jl.git")'
- julia --color=yes -e 'using PkgTestSuite; init()'
script:
- julia --color=yes -e 'using PkgTestSuite; test()'
- 0.7
- 1.0
- nightly

after_success:
- julia --color=yes -e 'using PkgTestSuite; deploy()'
- julia -e 'cd(Pkg.dir("FEMQuad")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
3 changes: 1 addition & 2 deletions REQUIRE
@@ -1,2 +1 @@
julia 0.6
Logging
julia 0.7
2 changes: 1 addition & 1 deletion docs/deploy.jl
Expand Up @@ -5,7 +5,7 @@ using Documenter

deploydocs(
repo = "github.com/JuliaFEM/FEMQuad.jl.git",
julia = "0.6",
julia = "1.0",
target = "build",
deps = nothing,
make = nothing)
5 changes: 1 addition & 4 deletions docs/make.jl
Expand Up @@ -6,7 +6,4 @@ using Documenter, FEMQuad
makedocs(modules=[FEMQuad],
format = :html,
sitename = "FEMQuad.jl",
pages = [
"Introduction" => "index.md",
"API" => "api.md"
])
pages = ["index.md", "api.md"])
2 changes: 1 addition & 1 deletion src/FEMQuad.jl
Expand Up @@ -24,7 +24,7 @@ function get_rule(order::Int, rules::Vararg{Symbol})
return rule
end
end
warn("No accurate rule enough found, picking last.")
@warn("No accurate rule enough found, picking last.", order, rules)
return rules[end]
end

Expand Down
1 change: 1 addition & 0 deletions test/REQUIRE
@@ -1 +1,2 @@
Documenter
TimerOutputs
30 changes: 10 additions & 20 deletions test/runtests.jl
@@ -1,27 +1,17 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using Test

test_files = String[]
include("../docs/make.jl")

push!(test_files, "test_glseg.jl")
push!(test_files, "test_glquad.jl")
push!(test_files, "test_glhex.jl")
push!(test_files, "test_gltri.jl")
push!(test_files, "test_gltet.jl")
push!(test_files, "test_glwed.jl")
push!(test_files, "test_glpyr.jl")

using TimerOutputs
const to = TimerOutput()
@testset "FEMQuad.jl" begin
for fn in test_files
timeit(to, fn) do
include(fn)
end
end
@testset "test_glseg" begin include("test_glseg.jl") end
@testset "test_glhex" begin include("test_glhex.jl") end
@testset "test_gltri" begin include("test_gltri.jl") end
@testset "test_gltet" begin include("test_gltet.jl") end
@testset "test_glwed" begin include("test_glwed.jl") end
@testset "test_glpyr" begin include("test_glpyr.jl") end
end
println()
println("Test statistics:")
println(to)

include("../docs/deploy.jl")
3 changes: 1 addition & 2 deletions test/test_glhex.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_3d, get_rule

@testset "Gauss-Legendre quadratures in hexahedrons" begin
Expand Down
4 changes: 1 addition & 3 deletions test/test_glpyr.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_3d, get_rule

@testset "Gauss-Legendre quadratures in pyramids" begin
Expand All @@ -11,4 +10,3 @@ using FEMQuad: integrate_3d, get_rule
@test isapprox(integrate_3d(f(0), :GLPYR5B), 4.0/6.0)
#@test isapprox(integrate_3d(f(1), :GLPYR5B), 7.0/6.0)
end

3 changes: 1 addition & 2 deletions test/test_glquad.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_2d, get_rule

@testset "Gauss-Legendre quadratures in quadrilaterals" begin
Expand Down
3 changes: 1 addition & 2 deletions test/test_glseg.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_1d, get_rule

@testset "Gauss-Legendre quadratures in one dimension" begin
Expand Down
3 changes: 1 addition & 2 deletions test/test_gltet.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_3d, get_rule

@testset "Gauss-Legendre quadratures in tetrahedrons" begin
Expand Down
3 changes: 1 addition & 2 deletions test/test_gltri.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_2d, get_rule

@testset "Gauss-Legendre quadratures in triangles" begin
Expand Down
4 changes: 1 addition & 3 deletions test/test_glwed.jl
@@ -1,8 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMQuad.jl/blob/master/LICENSE

using Base.Test
using FEMQuad
using FEMQuad, Test
using FEMQuad: integrate_3d, get_rule

@testset "Gauss-Legendre quadratures in prismatic domains" begin
Expand All @@ -21,4 +20,3 @@ using FEMQuad: integrate_3d, get_rule
#@test isapprox(integrate_3d(f(6), :GLWED21), 4597.0/420.0)
#@test isapprox(integrate_3d(f(7), :GLWED21), 20959.0/1260.0)
end

0 comments on commit aedc305

Please sign in to comment.