Skip to content

Commit

Permalink
change some and fix some things
Browse files Browse the repository at this point in the history
Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Nov 11, 2023
1 parent f497409 commit 250d8df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/deployconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ function auto_detect_deploy_system()
return GitLab()
elseif haskey(ENV, "BUILDKITE")
return Buildkite()
elseif haskey(ENV, "CI") && haskey(ENV, "CI_SYSTEM_VERSION")
elseif get(ENV, "CI", "") in ["woodpecker", "drone"]

Check warning on line 1123 in src/deployconfig.jl

View check run for this annotation

Codecov / codecov/patch

src/deployconfig.jl#L1123

Added line #L1123 was not covered by tests
return Woodpecker()
else
return nothing
Expand Down
6 changes: 3 additions & 3 deletions test/deployconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,8 @@ end end
end end
@testset "Woodpecker CI No CI_SYSTEM_VERSION environmental variable" begin; with_logger(NullLogger()) do
# Regular tag build with PROJECT_ACCESS_TOKEN but no CI_SYSTEM_VERSION. It should throw.
@test_throws KeyError withenv(
# Intentionally did not put CI_SYSTEM_VERSION
withenv(
"CI_SYSTEM_VERSION" => nothing,
"CI_PIPELINE_EVENT" => "push",
"CI" => "woodpecker",
"CI_REPO" => "JuliaDocs/Documenter.jl",
Expand All @@ -1020,7 +1020,7 @@ end end
"CI_COMMIT_TAG" => "v1.2.3",
"PROJECT_ACCESS_TOKEN" => "SGVsbG8sIHdvcmxkLg==",
) do
cfg = Documenter.Woodpecker()
@test_throws KeyError cfg = Documenter.Woodpecker()
end
end end
end end
Expand Down

0 comments on commit 250d8df

Please sign in to comment.