Skip to content

Commit

Permalink
Documentation deployment fix (#17)
Browse files Browse the repository at this point in the history
* Documentation warnings removed (building and deploying of the documentation is now separate from run_tests.jl)
* Travis file updated to build and deploy the documentation
* Package error fixed
  • Loading branch information
rezarastak authored and ahojukka5 committed Apr 5, 2019
1 parent 81b9ffc commit 19dda63
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,16 @@ julia:
- 1.0
- nightly

jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ -e 'import Pkg; Pkg.add("Documenter"); include("docs/make.jl")'
after_success: skip

after_success:
- julia -e 'cd(Pkg.dir("FEMQuad")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
1 change: 0 additions & 1 deletion docs/deploy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ using Documenter

deploydocs(
repo = "github.com/JuliaFEM/FEMQuad.jl.git",
julia = "1.0",
target = "build",
deps = nothing,
make = nothing)
4 changes: 3 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using Documenter, FEMQuad

makedocs(modules=[FEMQuad],
format = :html,
format = Documenter.HTML(),
sitename = "FEMQuad.jl",
pages = ["index.md", "api.md"])

include("deploy.jl")
1 change: 0 additions & 1 deletion test/REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Documenter
TimerOutputs
4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@

using Test

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

@testset "FEMQuad.jl" begin
@testset "test_glquad" begin include("test_glquad.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

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

0 comments on commit 19dda63

Please sign in to comment.