@@ -2,10 +2,13 @@ using Test
2
2
3
3
# DOCUMENTER_TEST_EXAMPLES can be used to control which builds are performed in
4
4
# make.jl, and we need to set it to the relevant LaTeX builds.
5
- ENV [" DOCUMENTER_TEST_EXAMPLES" ] =
6
- " latex latex_simple latex_cover_page latex_toc_style latex_simple_tectonic " *
7
- " latex_showcase"
8
-
5
+ if Sys. iswindows () && get (ENV , " GITHUB_ACTIONS" , nothing ) == " true"
6
+ ENV [" DOCUMENTER_TEST_EXAMPLES" ] = " latex_simple_nondocker latex_simple_tectonic"
7
+ else
8
+ ENV [" DOCUMENTER_TEST_EXAMPLES" ] =
9
+ " latex latex_simple latex_cover_page latex_toc_style latex_simple_nondocker latex_simple_tectonic " *
10
+ " latex_showcase"
11
+ end
9
12
# When the file is run separately we need to include make.jl which actually builds
10
13
# the docs and defines a few modules that are referred to in the docs. The make.jl
11
14
# has to be expected in the context of the Main module.
27
30
end
28
31
29
32
@testset " Examples/LaTeX" begin
30
- @testset " PDF/LaTeX: simple" begin
31
- doc = Main. examples_latex_simple_doc
32
- @test isa (doc, Documenter. Documenter. Document)
33
- let build_dir = joinpath (examples_root, " builds" , " latex_simple" )
34
- @test joinpath (build_dir, " DocumenterLaTeXSimple-1.2.3.pdf" ) |> isfile
33
+ if ! (Sys. iswindows () && get (ENV , " GITHUB_ACTIONS" , nothing ) == " true" )
34
+ @testset " PDF/LaTeX: simple" begin
35
+ doc = Main. examples_latex_simple_doc
36
+ @test isa (doc, Documenter. Documenter. Document)
37
+ let build_dir = joinpath (examples_root, " builds" , " latex_simple" )
38
+ @test joinpath (build_dir, " DocumenterLaTeXSimple-1.2.3.pdf" ) |> isfile
39
+ end
35
40
end
36
- end
37
41
38
- @testset " PDF/LaTeX" begin
39
- doc = Main. examples_latex_doc
40
- @test isa (doc, Documenter. Documenter. Document)
41
- let build_dir = joinpath (examples_root, " builds" , " latex" )
42
- @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
42
+ @testset " PDF/LaTeX" begin
43
+ doc = Main. examples_latex_doc
44
+ @test isa (doc, Documenter. Documenter. Document)
45
+ let build_dir = joinpath (examples_root, " builds" , " latex" )
46
+ @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
47
+ end
43
48
end
44
- end
45
49
46
- @testset " PDF/LaTeX: Custom Cover Page" begin
47
- doc = Main. examples_latex_cover_page
48
- @test isa (doc, Documenter. Documenter. Document)
49
- let build_dir = joinpath (examples_root, " builds" , " latex_cover_page" )
50
- @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
50
+ @testset " PDF/LaTeX: Custom Cover Page" begin
51
+ doc = Main. examples_latex_cover_page
52
+ @test isa (doc, Documenter. Documenter. Document)
53
+ let build_dir = joinpath (examples_root, " builds" , " latex_cover_page" )
54
+ @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
55
+ end
51
56
end
52
- end
53
57
54
- @testset " PDF/LaTeX: Custom TOC Style" begin
55
- doc = Main. examples_latex_toc_style
56
- @test isa (doc, Documenter. Documenter. Document)
57
- let build_dir = joinpath (examples_root, " builds" , " latex_toc_style" )
58
- @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
58
+ @testset " PDF/LaTeX: Custom TOC Style" begin
59
+ doc = Main. examples_latex_toc_style
60
+ @test isa (doc, Documenter. Documenter. Document)
61
+ let build_dir = joinpath (examples_root, " builds" , " latex_toc_style" )
62
+ @test joinpath (build_dir, " DocumenterLaTeX$(tagsuffix) .pdf" ) |> isfile
63
+ end
64
+ end
65
+
66
+ @testset " PDF/LaTeX: showcase" begin
67
+ doc = Main. examples_latex_showcase_doc
68
+ @test isa (doc, Documenter. Documenter. Document)
69
+ let build_dir = joinpath (examples_root, " builds" , " latex_showcase" )
70
+ @test joinpath (build_dir, " DocumenterLaTeXShowcase-1.2.3.pdf" ) |> isfile
71
+ end
59
72
end
60
73
end
61
74
67
80
end
68
81
end
69
82
70
- @testset " PDF/LaTeX: showcase " begin
71
- doc = Main. examples_latex_showcase_doc
83
+ @testset " PDF/LaTeX: native " begin
84
+ doc = Main. examples_latex_simple_nondocker_doc
72
85
@test isa (doc, Documenter. Documenter. Document)
73
- let build_dir = joinpath (examples_root, " builds" , " latex_showcase " )
74
- @test joinpath (build_dir, " DocumenterLaTeXShowcase -1.2.3.pdf" ) |> isfile
86
+ let build_dir = joinpath (examples_root, " builds" , " latex_simple_nondocker " )
87
+ @test joinpath (build_dir, " DocumenterLaTeXSimpleNon-Docker -1.2.3.pdf" ) |> isfile
75
88
end
76
89
end
77
90
end
0 commit comments