Move badge ordering into main module file

This commit is contained in:
Chris de Graaf 2017-08-16 00:33:36 -05:00
parent c00001312c
commit 188bfb9390
2 changed files with 2 additions and 3 deletions

View File

@ -30,5 +30,6 @@ const LICENSES = Dict(
"LGPL-2.1+" => "Lesser GNU Public License, Version 2.1+",
"LGPL-3.0+" => "Lesser GNU Public License, Version 3.0+"
)
const BADGE_ORDER = [GitHubPages, TravisCI, AppVeyor, CodeCov]
end

View File

@ -95,9 +95,7 @@ Returns an array of generated file/directory names.
"""
function gen_readme(pkg_name::AbstractString, template::Template)
text = "# $pkg_name\n"
# We want badges to be laid out: docs -> CI -> coverage.
ordering = [GitHubPages, TravisCI, AppVeyor, CodeCov]
for plugin_type in ordering
for plugin_type in BADGE_ORDER
if haskey(template.plugins, plugin_type)
text *= "\n"
text *= join(