Skip to content

Commit

Permalink
Documentation deployment fix (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 authored Apr 8, 2019
1 parent 08b7178 commit 53db388
Show file tree
Hide file tree
Showing 4 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 @@ -7,5 +7,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("FEMBase")); 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/FEMBase.jl.git",
julia = "1.0",
target = "build",
deps = nothing,
make = nothing)
5 changes: 3 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ PAGES = [
]

makedocs(modules=[FEMBase],
format = :html,
format = Documenter.HTML(analytics = "UA-83590644-1"),
checkdocs = :all,
sitename = "FEMBase.jl",
authors = "Jukka Aho",
analytics = "UA-83590644-1",
pages = PAGES)

include("deploy.jl")
4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

using FEMBase, Test, LinearAlgebra, SparseArrays, Statistics

include(joinpath("..", "docs", "make.jl"))

@testset "FEMBase.jl" begin
@testset "test_assembly" begin include("test_assembly.jl") end
@testset "test_elements" begin include("test_elements.jl") end
Expand All @@ -17,5 +15,3 @@ include(joinpath("..", "docs", "make.jl"))
@testset "test_test" begin include("test_test.jl") end
@testset "test_types" begin include("test_types.jl") end
end

include(joinpath("..", "docs", "deploy.jl"))

0 comments on commit 53db388

Please sign in to comment.