Fix Documenter tests

Tests now only work on v1.0.3+, lower versions will get an error saying
that there are multiple versions of Documenter available. This doesn't
break usage on older Julia versions, though.
This commit is contained in:
Chris de Graaf 2018-12-19 13:48:07 -06:00
parent 34c7655166
commit 44d114a050
3 changed files with 7 additions and 7 deletions

View File

@ -37,9 +37,9 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
[[Mustache]]
deps = ["Tables", "Test"]
git-tree-sha1 = "536782063c50421b05d1369bbd09fced13624361"
git-tree-sha1 = "be8d12b4a84ed7b592a6540b71c664440a4dd7f1"
uuid = "ffc61752-8dc7-55ee-8c37-f3e9cdd09e70"
version = "0.5.7"
version = "0.5.8"
[[Pkg]]
deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]

View File

@ -37,7 +37,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
@test !occursin("after_success", travis)
@test !occursin("Codecov.submit", travis)
@test !occursin("Coveralls.submit", travis)
@test !occursin("Pkg.add(\"Documenter\")", travis)
@test !occursin("stage: Documentation", travis)
rm(joinpath(pkg_dir, ".travis.yml"))
# Generating the plugin with Codecov in the template should create a post-test step.
@ -48,7 +48,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
@test occursin("after_success", travis)
@test occursin("Codecov.submit", travis)
@test !occursin("Coveralls.submit", travis)
@test !occursin("Pkg.add(\"Documenter\")", travis)
@test !occursin("stage: Documentation", travis)
rm(joinpath(pkg_dir, ".travis.yml"))
# Coveralls should do the same.
@ -59,7 +59,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
@test occursin("after_success", travis)
@test occursin("Coveralls.submit", travis)
@test !occursin("Codecov.submit", travis)
@test !occursin("Pkg.add(\"Documenter\")", travis)
@test !occursin("stage: Documentation", travis)
rm(joinpath(pkg_dir, ".travis.yml"))
# With a Documenter plugin, there should be a docs deployment step.
@ -68,7 +68,7 @@ pkg_dir = joinpath(t.dir, test_pkg)
delete!(t.plugins, GitHubPages)
travis = read(joinpath(pkg_dir, ".travis.yml"), String)
@test occursin("after_success", travis)
@test occursin("Pkg.add(\"Documenter\")", travis)
@test occursin("stage: Documentation", travis)
@test !occursin("Codecov.submit", travis)
@test !occursin("Coveralls.submit", travis)
rm(joinpath(pkg_dir, ".travis.yml"))

View File

@ -463,7 +463,7 @@ end
@test occursin("\n checkdocs=:none,\n", make)
@test !occursin("format=:markdown", make)
@test occursin("format=:html", make)
@test occursin("format=Documenter.HTML()", make)
rm(pkg_dir; recursive=true)
end
# Test with string kwargs