diff --git a/src/plugins/ci.jl b/src/plugins/ci.jl index 2159fa14..bce9485e 100644 --- a/src/plugins/ci.jl +++ b/src/plugins/ci.jl @@ -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 @@ -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 diff --git a/templates/gitlab-ci.yml b/templates/gitlab-ci.yml index 44e50172..28dec1ce 100644 --- a/templates/gitlab-ci.yml +++ b/templates/gitlab-ci.yml @@ -1,3 +1,4 @@ +{{{FILE_PREFIX}}} .script: script: - | diff --git a/test/reference.jl b/test/reference.jl index baa42b36..65f314ad 100644 --- a/test/reference.jl +++ b/test/reference.jl @@ -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"),