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

paulk pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 7cf7a00  tweak to test for CI robustness of RMI tests when run via 
Google actions
7cf7a00 is described below

commit 7cf7a00d08f5a73c2446657de9a45ed8c872a3fb
Author: Paul King <[email protected]>
AuthorDate: Mon Apr 19 09:33:07 2021 +1000

    tweak to test for CI robustness of RMI tests when run via Google actions
---
 gradle/test.gradle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gradle/test.gradle b/gradle/test.gradle
index a5c4926..c7d1d6b 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -96,7 +96,8 @@ tasks.withType(Test) {
 }
 
 boolean isRunningOnCI() {
-    new File('.').absolutePath =~ /teamcity|jenkins|hudson|travis/
+    // home/runner/work is path for Github actions
+    new File('.').absolutePath =~ 
$/teamcity|jenkins|hudson|travis|/home/runner/work/$
 }
 
 logger.lifecycle "Detected ${isRunningOnCI() ? 'Continuous Integration 
environment' : 'development environment'}"

Reply via email to