Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitlab-ci.yml file prefix #372

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/plugins/ci.jl
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ See [`Documenter`](@ref) for more information.
@plugin struct GitLabCI <: FilePlugin
file::String = default_file("gitlab-ci.yml")
coverage::Bool = true
file_prefix::String = ""
# Nightly has no Docker image.
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_NIGHTLY
end
Expand Down Expand Up @@ -335,6 +336,7 @@ function view(p::GitLabCI, t::Template, pkg::AbstractString)
"USER" => t.user,
"VERSION" => format_version(t.julia),
"VERSIONS" => collect_versions(t, p.extra_versions),
"FILE_PREFIX" => p.file_prefix,
)
end

Expand Down
1 change: 1 addition & 0 deletions templates/gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{{FILE_PREFIX}}}
.script:
script:
- |
Expand Down
2 changes: 1 addition & 1 deletion test/reference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ end
DroneCI(; amd64=false, arm=true, arm64=true, extra_versions=["1.3"]),
Git(; ignore=["a", "b", "c"], manifest=true, branch="whackybranch"),
GitHubActions(; x86=true, linux=false, coverage=false),
GitLabCI(; coverage=false, extra_versions=[v"0.6"]),
GitLabCI(; coverage=false, extra_versions=[v"0.6"], file_prefix=""),
License(; name="ISC"),
PkgEvalBadge(),
ProjectFile(; version=v"1"),
Expand Down