You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/06/02 10:04:12 UTC

[plc4x] branch develop updated: test(plc4go): detect more CI runtimes

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 59e34eebfc test(plc4go): detect more CI runtimes
59e34eebfc is described below

commit 59e34eebfc38e1c94aeec91be4e79dbe69707a1a
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jun 2 12:04:04 2023 +0200

    test(plc4go): detect more CI runtimes
---
 plc4go/spi/testutils/TestUtils.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plc4go/spi/testutils/TestUtils.go b/plc4go/spi/testutils/TestUtils.go
index c4a7fb80b3..6d5cf89bcd 100644
--- a/plc4go/spi/testutils/TestUtils.go
+++ b/plc4go/spi/testutils/TestUtils.go
@@ -112,7 +112,9 @@ func ProduceTestingLogger(t *testing.T) zerolog.Logger {
 			func(w *zerolog.ConsoleWriter) {
 				// TODO: this is really an issue with go-junit-report not sanitizing output before dumping into xml...
 				onJenkins := os.Getenv("JENKINS_URL") != ""
-				if onJenkins {
+				onGithubAction := os.Getenv("GITHUB_ACTIONS") != ""
+				onCI := os.Getenv("CI") != ""
+				if onJenkins || onGithubAction || onCI {
 					w.NoColor = true
 				}
 			},