Skip to content

Commit 250d8df

Browse files
change some and fix some things
Signed-off-by: Soc Virnyl Estela <[email protected]>
1 parent f497409 commit 250d8df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/deployconfig.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ function auto_detect_deploy_system()
11201120
return GitLab()
11211121
elseif haskey(ENV, "BUILDKITE")
11221122
return Buildkite()
1123-
elseif haskey(ENV, "CI") && haskey(ENV, "CI_SYSTEM_VERSION")
1123+
elseif get(ENV, "CI", "") in ["woodpecker", "drone"]
11241124
return Woodpecker()
11251125
else
11261126
return nothing

test/deployconfig.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,8 @@ end end
10101010
end end
10111011
@testset "Woodpecker CI No CI_SYSTEM_VERSION environmental variable" begin; with_logger(NullLogger()) do
10121012
# Regular tag build with PROJECT_ACCESS_TOKEN but no CI_SYSTEM_VERSION. It should throw.
1013-
@test_throws KeyError withenv(
1014-
# Intentionally did not put CI_SYSTEM_VERSION
1013+
withenv(
1014+
"CI_SYSTEM_VERSION" => nothing,
10151015
"CI_PIPELINE_EVENT" => "push",
10161016
"CI" => "woodpecker",
10171017
"CI_REPO" => "JuliaDocs/Documenter.jl",
@@ -1020,7 +1020,7 @@ end end
10201020
"CI_COMMIT_TAG" => "v1.2.3",
10211021
"PROJECT_ACCESS_TOKEN" => "SGVsbG8sIHdvcmxkLg==",
10221022
) do
1023-
cfg = Documenter.Woodpecker()
1023+
@test_throws KeyError cfg = Documenter.Woodpecker()
10241024
end
10251025
end end
10261026
end end

0 commit comments

Comments
 (0)