Skip to content

Commit

Permalink
Replace CI environment variables with HXCPP_COLOR define.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Sep 2, 2024
1 parent 5d60aba commit 43c0cdc
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions tools/hxcpp/Log.hx
Original file line number Diff line number Diff line change
Expand Up @@ -136,38 +136,8 @@ class Log
}
else
{
if (Sys.getEnv('CI') != null)
{
var ciEnvNames = [
"GITHUB_ACTIONS",
"GITEA_ACTIONS",
"TRAVIS",
"CIRCLECI",
"APPVEYOR",
"GITLAB_CI",
"BUILDKITE",
"DRONE"
];

for (ci in ciEnvNames)
{
if (Sys.getEnv(ci) != null)
{
colorSupported = true;
break;
}
}

if (colorSupported != true && Sys.getEnv("CI_NAME") == "codeship")
{
if (Sys.getEnv('HXCPP_COLOR') != null)
colorSupported = true;
}
}

if (colorSupported != true && Sys.getEnv("TEAMCITY_VERSION") != null)
{
colorSupported = ~/^9\.(0*[1-9]\d*)\.|\d{2,}\./.match(Sys.getEnv("TEAMCITY_VERSION"));
}

if (colorSupported != true && term != null)
{
Expand Down

0 comments on commit 43c0cdc

Please sign in to comment.