Skip to content

Commit

Permalink
Skip doctests on Julia 1.6 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored Jul 3, 2020
1 parent 038b9ec commit 95c58a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ using Test
@testset "$file" for file in sort([
file for file in readdir(@__DIR__) if match(r"^test_.*\.jl$", file) !== nothing
])

if file == "test_doctest.jl"
if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true"
@info "Skipping doctests on PkgEval."
continue
elseif VERSION >= v"1.5-"
@info "Skipping doctests on Julia $VERSION."
continue
end
end

include(file)
end

Expand Down
6 changes: 1 addition & 5 deletions test/test_doctest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ using Documenter: doctest
using Test

@testset "doctest" begin
if lowercase(get(ENV, "JULIA_PKGEVAL", "false")) == "true"
@info "Skipping doctests on PkgEval."
else
doctest(LazyGroupBy)
end
doctest(LazyGroupBy)
end

end # module

0 comments on commit 95c58a1

Please sign in to comment.