Fix some GitLab URL issues (#157)

This commit is contained in:
Chris de Graaf 2020-04-18 10:35:35 -05:00 committed by GitHub
parent c605793b2f
commit ad0c012e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 10 deletions

View File

@ -307,13 +307,13 @@ destination(::GitLabCI) = ".gitlab-ci.yml"
function badges(p::GitLabCI)
ci = Badge(
"Build Status",
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/badges/master/build.svg",
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/pipelines",
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/master/pipeline.svg",
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/pipelines",
)
cov = Badge(
"Coverage",
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/badges/master/coverage.svg",
"https://gitlab.com/{{{USER}}}/{{{PKG}}}.jl/commits/master",
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/badges/master/coverage.svg",
"https://{{{HOST}}}/{{{USER}}}/{{{PKG}}}.jl/commits/master",
)
return p.coverage ? [ci, cov] : [ci]
end
@ -322,6 +322,7 @@ function view(p::GitLabCI, t::Template, pkg::AbstractString)
return Dict(
"HAS_COVERAGE" => p.coverage,
"HAS_DOCUMENTER" => hasplugin(t, Documenter{GitLabCI}),
"HOST" => t.host,
"PKG" => pkg,
"USER" => t.user,
"VERSION" => format_version(t.julia),

View File

@ -82,6 +82,7 @@ badges(::Documenter{<:GitHubPagesStyle}) = [
badges(::Documenter{GitLabCI}) = Badge(
"Dev",
"https://img.shields.io/badge/docs-dev-blue.svg",
# TODO: Support custom domain here.
"https://{{{USER}}}.gitlab.io/{{{PKG}}}.jl/dev",
)

View File

@ -1,8 +1,8 @@
# AllPlugins
[![Build Status](https://github.com/tester/AllPlugins.jl/workflows/CI/badge.svg)](https://github.com/tester/AllPlugins.jl/actions)
[![Build Status](https://gitlab.com/tester/AllPlugins.jl/badges/master/build.svg)](https://gitlab.com/tester/AllPlugins.jl/pipelines)
[![Coverage](https://gitlab.com/tester/AllPlugins.jl/badges/master/coverage.svg)](https://gitlab.com/tester/AllPlugins.jl/commits/master)
[![Build Status](https://github.com/tester/AllPlugins.jl/badges/master/pipeline.svg)](https://github.com/tester/AllPlugins.jl/pipelines)
[![Coverage](https://github.com/tester/AllPlugins.jl/badges/master/coverage.svg)](https://github.com/tester/AllPlugins.jl/commits/master)
[![Build Status](https://travis-ci.com/tester/AllPlugins.jl.svg?branch=master)](https://travis-ci.com/tester/AllPlugins.jl)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/AllPlugins.jl?svg=true)](https://ci.appveyor.com/project/tester/AllPlugins-jl)
[![Build Status](https://cloud.drone.io/api/badges/tester/AllPlugins.jl/status.svg)](https://cloud.drone.io/tester/AllPlugins.jl)

View File

@ -1,7 +1,7 @@
@misc{WackyOptions.jl,
author = {tester},
title = {WackyOptions.jl},
url = {https://github.com/tester/WackyOptions.jl},
url = {https://x.com/tester/WackyOptions.jl},
version = {v0.1.0},
year = {2019},
month = {8}

View File

@ -1,4 +1,4 @@
# WackyOptions [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.gitlab.io/WackyOptions.jl/dev) [![Build Status](https://github.com/tester/WackyOptions.jl/workflows/CI/badge.svg)](https://github.com/tester/WackyOptions.jl/actions) [![Build Status](https://gitlab.com/tester/WackyOptions.jl/badges/master/build.svg)](https://gitlab.com/tester/WackyOptions.jl/pipelines) [![Build Status](https://travis-ci.com/tester/WackyOptions.jl.svg?branch=master)](https://travis-ci.com/tester/WackyOptions.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/WackyOptions.jl?svg=true)](https://ci.appveyor.com/project/tester/WackyOptions-jl) [![Build Status](https://cloud.drone.io/api/badges/tester/WackyOptions.jl/status.svg)](https://cloud.drone.io/tester/WackyOptions.jl) [![Build Status](https://api.cirrus-ci.com/github/tester/WackyOptions.jl.svg)](https://cirrus-ci.com/github/tester/WackyOptions.jl) [![Coverage](https://codecov.io/gh/tester/WackyOptions.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/tester/WackyOptions.jl) [![Coverage](https://coveralls.io/repos/github/tester/WackyOptions.jl/badge.svg?branch=master)](https://coveralls.io/github/tester/WackyOptions.jl?branch=master)
# WackyOptions [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.gitlab.io/WackyOptions.jl/dev) [![Build Status](https://github.com/tester/WackyOptions.jl/workflows/CI/badge.svg)](https://github.com/tester/WackyOptions.jl/actions) [![Build Status](https://x.com/tester/WackyOptions.jl/badges/master/pipeline.svg)](https://x.com/tester/WackyOptions.jl/pipelines) [![Build Status](https://travis-ci.com/tester/WackyOptions.jl.svg?branch=master)](https://travis-ci.com/tester/WackyOptions.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/WackyOptions.jl?svg=true)](https://ci.appveyor.com/project/tester/WackyOptions-jl) [![Build Status](https://cloud.drone.io/api/badges/tester/WackyOptions.jl/status.svg)](https://cloud.drone.io/tester/WackyOptions.jl) [![Build Status](https://api.cirrus-ci.com/github/tester/WackyOptions.jl.svg)](https://cirrus-ci.com/github/tester/WackyOptions.jl) [![Coverage](https://codecov.io/gh/tester/WackyOptions.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/tester/WackyOptions.jl) [![Coverage](https://coveralls.io/repos/github/tester/WackyOptions.jl/badge.svg?branch=master)](https://coveralls.io/github/tester/WackyOptions.jl?branch=master)
## Citing

View File

@ -4,7 +4,7 @@ using Documenter
makedocs(;
modules=[WackyOptions],
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",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",

View File

@ -58,7 +58,7 @@ end
@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"]),
CirrusCI(; image="freebsd-123", coverage=false, extra_versions=["1.1"]),
Citation(; readme=true),