Fix some GitLab URL issues (#157)
This commit is contained in:
parent
c605793b2f
commit
ad0c012e88
@ -307,13 +307,13 @@ destination(::GitLabCI) = ".gitlab-ci.yml"
|
|||||||
function badges(p::GitLabCI)
|
function badges(p::GitLabCI)
|
||||||
ci = Badge(
|
ci = Badge(
|
||||||
"Build Status",
|
"Build Status",
|
||||||
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/badges/master/build.svg",
|
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/master/pipeline.svg",
|
||||||
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/pipelines",
|
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/pipelines",
|
||||||
)
|
)
|
||||||
cov = Badge(
|
cov = Badge(
|
||||||
"Coverage",
|
"Coverage",
|
||||||
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/badges/master/coverage.svg",
|
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/master/coverage.svg",
|
||||||
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/commits/master",
|
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/commits/master",
|
||||||
)
|
)
|
||||||
return p.coverage ? [ci, cov] : [ci]
|
return p.coverage ? [ci, cov] : [ci]
|
||||||
end
|
end
|
||||||
@ -322,6 +322,7 @@ function view(p::GitLabCI, t::Template, pkg::AbstractString)
|
|||||||
return Dict(
|
return Dict(
|
||||||
"HAS_COVERAGE" => p.coverage,
|
"HAS_COVERAGE" => p.coverage,
|
||||||
"HAS_DOCUMENTER" => hasplugin(t, Documenter{GitLabCI}),
|
"HAS_DOCUMENTER" => hasplugin(t, Documenter{GitLabCI}),
|
||||||
|
"HOST" => t.host,
|
||||||
"PKG" => pkg,
|
"PKG" => pkg,
|
||||||
"USER" => t.user,
|
"USER" => t.user,
|
||||||
"VERSION" => format_version(t.julia),
|
"VERSION" => format_version(t.julia),
|
||||||
|
@ -82,6 +82,7 @@ badges(::Documenter{<:GitHubPagesStyle}) = [
|
|||||||
badges(::Documenter{GitLabCI}) = Badge(
|
badges(::Documenter{GitLabCI}) = Badge(
|
||||||
"Dev",
|
"Dev",
|
||||||
"https://img.shields.io/badge/docs-dev-blue.svg",
|
"https://img.shields.io/badge/docs-dev-blue.svg",
|
||||||
|
# TODO: Support custom domain here.
|
||||||
"https://{{{USER}}}.gitlab.io/{{{PKG}}}.jl/dev",
|
"https://{{{USER}}}.gitlab.io/{{{PKG}}}.jl/dev",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
4
test/fixtures/AllPlugins/README.md
vendored
4
test/fixtures/AllPlugins/README.md
vendored
@ -1,8 +1,8 @@
|
|||||||
# AllPlugins
|
# AllPlugins
|
||||||
|
|
||||||
[](https://github.com/tester/AllPlugins.jl/actions)
|
[](https://github.com/tester/AllPlugins.jl/actions)
|
||||||
[](https://gitlab.com/tester/AllPlugins.jl/pipelines)
|
[](https://github.com/tester/AllPlugins.jl/pipelines)
|
||||||
[](https://gitlab.com/tester/AllPlugins.jl/commits/master)
|
[](https://github.com/tester/AllPlugins.jl/commits/master)
|
||||||
[](https://travis-ci.com/tester/AllPlugins.jl)
|
[](https://travis-ci.com/tester/AllPlugins.jl)
|
||||||
[](https://ci.appveyor.com/project/tester/AllPlugins-jl)
|
[](https://ci.appveyor.com/project/tester/AllPlugins-jl)
|
||||||
[](https://cloud.drone.io/tester/AllPlugins.jl)
|
[](https://cloud.drone.io/tester/AllPlugins.jl)
|
||||||
|
2
test/fixtures/WackyOptions/CITATION.bib
vendored
2
test/fixtures/WackyOptions/CITATION.bib
vendored
@ -1,7 +1,7 @@
|
|||||||
@misc{WackyOptions.jl,
|
@misc{WackyOptions.jl,
|
||||||
author = {tester},
|
author = {tester},
|
||||||
title = {WackyOptions.jl},
|
title = {WackyOptions.jl},
|
||||||
url = {https://github.com/tester/WackyOptions.jl},
|
url = {https://x.com/tester/WackyOptions.jl},
|
||||||
version = {v0.1.0},
|
version = {v0.1.0},
|
||||||
year = {2019},
|
year = {2019},
|
||||||
month = {8}
|
month = {8}
|
||||||
|
2
test/fixtures/WackyOptions/README.md
vendored
2
test/fixtures/WackyOptions/README.md
vendored
@ -1,4 +1,4 @@
|
|||||||
# WackyOptions [](https://tester.gitlab.io/WackyOptions.jl/dev) [](https://github.com/tester/WackyOptions.jl/actions) [](https://gitlab.com/tester/WackyOptions.jl/pipelines) [](https://travis-ci.com/tester/WackyOptions.jl) [](https://ci.appveyor.com/project/tester/WackyOptions-jl) [](https://cloud.drone.io/tester/WackyOptions.jl) [](https://cirrus-ci.com/github/tester/WackyOptions.jl) [](https://codecov.io/gh/tester/WackyOptions.jl) [](https://coveralls.io/github/tester/WackyOptions.jl?branch=master)
|
# WackyOptions [](https://tester.gitlab.io/WackyOptions.jl/dev) [](https://github.com/tester/WackyOptions.jl/actions) [](https://x.com/tester/WackyOptions.jl/pipelines) [](https://travis-ci.com/tester/WackyOptions.jl) [](https://ci.appveyor.com/project/tester/WackyOptions-jl) [](https://cloud.drone.io/tester/WackyOptions.jl) [](https://cirrus-ci.com/github/tester/WackyOptions.jl) [](https://codecov.io/gh/tester/WackyOptions.jl) [](https://coveralls.io/github/tester/WackyOptions.jl?branch=master)
|
||||||
|
|
||||||
## Citing
|
## Citing
|
||||||
|
|
||||||
|
2
test/fixtures/WackyOptions/docs/make.jl
vendored
2
test/fixtures/WackyOptions/docs/make.jl
vendored
@ -4,7 +4,7 @@ using Documenter
|
|||||||
makedocs(;
|
makedocs(;
|
||||||
modules=[WackyOptions],
|
modules=[WackyOptions],
|
||||||
authors="tester",
|
authors="tester",
|
||||||
repo="https://github.com/tester/WackyOptions.jl/blob/{commit}{path}#L{line}",
|
repo="https://x.com/tester/WackyOptions.jl/blob/{commit}{path}#L{line}",
|
||||||
sitename="WackyOptions.jl",
|
sitename="WackyOptions.jl",
|
||||||
format=Documenter.HTML(;
|
format=Documenter.HTML(;
|
||||||
prettyurls=get(ENV, "CI", "false") == "true",
|
prettyurls=get(ENV, "CI", "false") == "true",
|
||||||
|
@ -58,7 +58,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
@testset "Wacky options" begin
|
@testset "Wacky options" begin
|
||||||
test_all("WackyOptions"; authors=USER, julia=v"1.2", plugins=[
|
test_all("WackyOptions"; authors=USER, julia=v"1.2", host="x.com", plugins=[
|
||||||
AppVeyor(; x86=true, coverage=true, extra_versions=[v"1.1"]),
|
AppVeyor(; x86=true, coverage=true, extra_versions=[v"1.1"]),
|
||||||
CirrusCI(; image="freebsd-123", coverage=false, extra_versions=["1.1"]),
|
CirrusCI(; image="freebsd-123", coverage=false, extra_versions=["1.1"]),
|
||||||
Citation(; readme=true),
|
Citation(; readme=true),
|
||||||
|
Loading…
Reference in New Issue
Block a user