|
|
|
@ -294,6 +294,30 @@ const expansion_warning = get(ENV, "HAS_JOSH_K_SEAL_OF_APPROVAL", "") == "true" |
|
|
|
script = read(joinpath(outdir, "inputfile.jl"), String) |
|
|
|
script = read(joinpath(outdir, "inputfile.jl"), String) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", script) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", script) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions with a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/tags/v1.2.0", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.script(inputfile, outdir) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
script = read(joinpath(outdir, "inputfile.jl"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/v1.2.0/", script) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions without a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/heads/master", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.script(inputfile, outdir) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
script = read(joinpath(outdir, "inputfile.jl"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", script) |
|
|
|
|
|
|
|
|
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
@ -449,6 +473,30 @@ end |
|
|
|
markdown = read(joinpath(outdir, "inputfile.md"), String) |
|
|
|
markdown = read(joinpath(outdir, "inputfile.md"), String) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", markdown) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", markdown) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions with a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/tags/v1.2.0", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.markdown(inputfile, outdir) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
markdown = read(joinpath(outdir, "inputfile.md"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/v1.2.0/", markdown) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions without a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/heads/master", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.markdown(inputfile, outdir) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
markdown = read(joinpath(outdir, "inputfile.md"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", markdown) |
|
|
|
|
|
|
|
|
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
@ -679,6 +727,30 @@ end |
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", notebook) |
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", notebook) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions with a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/tags/v1.2.0", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.notebook(inputfile, outdir, execute = false) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/v1.2.0/", notebook) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GitHub Actions without a tag |
|
|
|
|
|
|
|
withenv("GITHUB_ACTION" => "Build docs", |
|
|
|
|
|
|
|
"GITHUB_REPOSITORY" => "fredrikekre/Literate.jl", |
|
|
|
|
|
|
|
"GITHUB_REF" => "refs/heads/master", |
|
|
|
|
|
|
|
"HAS_JOSH_K_SEAL_OF_APPROVAL" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_REPO_SLUG" => nothing, |
|
|
|
|
|
|
|
"TRAVIS_TAG" => nothing) do |
|
|
|
|
|
|
|
Literate.notebook(inputfile, outdir, execute = false) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
|
|
|
|
@test occursin("fredrikekre/Literate.jl/blob/gh-pages/dev/", notebook) |
|
|
|
|
|
|
|
|
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
# building under DocumentationGenerator.jl |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
withenv("DOCUMENTATIONGENERATOR" => "true", |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
"DOCUMENTATIONGENERATOR_BASE_URL" => "pkg.julialang.org/docs/Literate/XPnWG/1.2.0") do |
|
|
|
|