Skip to content

Commit e507f0b

Browse files
committed
Replace CI environment variables with HXCPP_COLOR define.
1 parent aeb7c54 commit e507f0b

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

tools/hxcpp/Log.hx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -143,38 +143,8 @@ class Log
143143
}
144144
else
145145
{
146-
if (Sys.getEnv('CI') != null)
147-
{
148-
var ciEnvNames = [
149-
"GITHUB_ACTIONS",
150-
"GITEA_ACTIONS",
151-
"TRAVIS",
152-
"CIRCLECI",
153-
"APPVEYOR",
154-
"GITLAB_CI",
155-
"BUILDKITE",
156-
"DRONE"
157-
];
158-
159-
for (ci in ciEnvNames)
160-
{
161-
if (Sys.getEnv(ci) != null)
162-
{
163-
colorSupported = true;
164-
break;
165-
}
166-
}
167-
168-
if (colorSupported != true && Sys.getEnv("CI_NAME") == "codeship")
169-
{
146+
if (Sys.getEnv('HXCPP_COLOR') != null)
170147
colorSupported = true;
171-
}
172-
}
173-
174-
if (colorSupported != true && Sys.getEnv("TEAMCITY_VERSION") != null)
175-
{
176-
colorSupported = ~/^9\.(0*[1-9]\d*)\.|\d{2,}\./.match(Sys.getEnv("TEAMCITY_VERSION"));
177-
}
178148

179149
if (colorSupported != true && term != null)
180150
{

0 commit comments

Comments
 (0)