Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Run doctests if Documenter is installed.
Browse files Browse the repository at this point in the history
Optional deps are handled by the buildbot now.
  • Loading branch information
maleadt committed Jul 28, 2017
1 parent a623e2e commit 7120e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions test/documentation.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if !("Documenter" in keys(Pkg.installed()))
Pkg.add("Documenter")
end

@testset "documentation" begin

out = Pipe()
Expand Down
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if CUDAnative.configured
include("intrinsics.jl")

include("examples.jl")
if parse(Bool, get(ENV, "DOCTEST", "false"))
if "Documenter" in keys(Pkg.installed())
include("documentation.jl")
else
warn("Documenter.jl not installed, skipping documentation tests.")
end
end
end
Expand Down

0 comments on commit 7120e90

Please sign in to comment.