Skip to content

Commit

Permalink
Make package work with Julia v1.0 (#25)
Browse files Browse the repository at this point in the history
Don't use PkgTestSuite while testing package.
  • Loading branch information
ahojukka5 authored Aug 20, 2018
1 parent 9226181 commit 02da5c5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 23 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ docs/build/
docs/site/
*.cov
*.swp
docs/src/index.md
16 changes: 1 addition & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,9 @@ os:
- linux

julia:
- 0.6
- 0.7
- 1.0
- nightly

matrix:
allow_failures:
- julia: 0.6
- julia: 1.0
- julia: nightly

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()'

after_success:
- julia --color=yes -e 'using PkgTestSuite; deploy()'
- julia -e 'cd(Pkg.dir("FEMBasis")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
2 changes: 1 addition & 1 deletion docs/deploy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Documenter

deploydocs(
repo = "github.com/JuliaFEM/FEMBasis.jl.git",
julia = "0.6",
julia = "1.0",
target = "build",
deps = nothing,
make = nothing)
7 changes: 1 addition & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@

using Documenter, FEMBasis

cp("../README.md", "src/index.md"; remove_destination=true)

makedocs(modules=[FEMBasis],
format = :html,
checkdocs = :all,
sitename = "FEMBasis.jl",
pages = [
"Introduction" => "index.md",
"API documentation" => "api.md",
])
pages = ["index.md"])
6 changes: 6 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# FEMBasis.jl

Package contains routines for generating basis functions for finite elements.

Supported elements:
- Nodal basis (Lagrange) for all topologies
1 change: 1 addition & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Documenter
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMBasis.jl/blob/master/LICENSE

using FEMBasis
using Test

include("../docs/make.jl")

@testset "FEMBasis.jl" begin
@testset "test substitution" begin include("test_substitute.jl") end
@testset "create Vandermonde matrix" begin include("test_vandermonde.jl") end
Expand All @@ -12,3 +15,5 @@ using Test
@testset "test_nurbs_elements" begin include("test_nurbs_elements.jl") end
@testset "test_math" begin include("test_math.jl") end
end

include("../docs/deploy.jl")

0 comments on commit 02da5c5

Please sign in to comment.