Skip to content

Commit

Permalink
Use project to build Documenter docs (#1570)
Browse files Browse the repository at this point in the history
This will ensure doctests do not regress (once they pass and we enable them).
  • Loading branch information
nalimilan committed Nov 3, 2018
1 parent 69b2d11 commit 10b72d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Expand Up @@ -24,5 +24,15 @@ script:
- julia --check-bounds=yes -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("DataFrames"); Pkg.test("DataFrames"; coverage=true)'

after_success:
- julia -e 'using Pkg; cd(Pkg.dir("DataFrames")); ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps); Pkg.add("Query"); Pkg.add("CSV"); include(joinpath("docs", "make.jl"))'
- julia -e 'using Pkg; cd(Pkg.dir("DataFrames")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

jobs:
include:
- stage: "Documentation"
julia: 1.0
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate();
Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
after_success: skip
6 changes: 6 additions & 0 deletions docs/Project.toml
@@ -0,0 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "~0.19"

5 changes: 5 additions & 0 deletions docs/make.jl
@@ -1,5 +1,10 @@
using Documenter, DataFrames

# Workaround for JuliaLang/julia/pull/28625
if Base.HOME_PROJECT[] !== nothing
Base.HOME_PROJECT[] = abspath(Base.HOME_PROJECT[])
end

# Build documentation.
# ====================

Expand Down

0 comments on commit 10b72d7

Please sign in to comment.