File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 61
61
62
62
- name : Build with Gradle
63
63
run : |
64
- ./gradlew.bat build -x integTest -x jacocoTestReport
64
+ ./gradlew.bat build
65
65
66
66
- name : Create Artifact Path
67
67
run : |
94
94
95
95
- name : Build with Gradle
96
96
run : |
97
- ./gradlew build -x integTest -x jacocoTestReport
97
+ ./gradlew build
98
98
99
99
- name : Create Artifact Path
100
100
run : |
Original file line number Diff line number Diff line change 17
17
* break if there are multiple nodes in the integTestCluster. But for now... it sorta works.
18
18
*/
19
19
20
+ import org.apache.tools.ant.taskdefs.condition.Os
21
+ apply plugin : ' jacoco'
22
+
20
23
// Get gradle to generate the required jvm agent arg for us using a dummy tasks of type Test. Unfortunately Elastic's
21
24
// testing tasks don't derive from Test so the jacoco plugin can't do this automatically.
22
25
def jacocoDir = " ${ buildDir} /jacoco"
@@ -61,7 +64,12 @@ allprojects{
61
64
jacocoTestReport. dependsOn integTest
62
65
63
66
testClusters. integTest {
64
- jvmArgs " ${ dummyIntegTest.jacoco.getAsJvmArg()} " . replace(' javaagent:' ,' javaagent:/' )
67
+ if (Os . isFamily(Os . FAMILY_WINDOWS )) {
68
+ // Replacing build with absolute path to fix the error "error opening zip file or JAR manifest missing : /build/tmp/expandedArchives/..../jacocoagent.jar"
69
+ jvmArgs " ${ dummyIntegTest.jacoco.getAsJvmArg()} " . replace(' build' ," ${ buildDir} " )
70
+ } else {
71
+ jvmArgs " ${ dummyIntegTest.jacoco.getAsJvmArg()} " . replace(' javaagent:' ,' javaagent:/' )
72
+ }
65
73
systemProperty ' com.sun.management.jmxremote' , " true"
66
74
systemProperty ' com.sun.management.jmxremote.authenticate' , " false"
67
75
systemProperty ' com.sun.management.jmxremote.port' , " 7777"
You can’t perform that action at this time.
0 commit comments