File tree 3 files changed +17
-3
lines changed
src/functionalTest/java/org/scoverage
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
+ strategy :
15
+ matrix :
16
+ include :
17
+ - additional-check-args : ' '
18
+ continue-on-error : false
19
+ - additional-check-args : ' --warning-mode=fail -PfailOnWarning'
20
+ continue-on-error : true
14
21
15
22
runs-on : ubuntu-latest
16
23
24
31
- name : Grant execute permission for gradlew
25
32
run : chmod +x gradlew
26
33
- name : Build with Gradle
27
- run : ./gradlew --info --stacktrace check
34
+ run : ./gradlew --info --stacktrace check ${{ matrix.additional-check-args }}
35
+ continue-on-error : ${{ matrix.continue-on-error }}
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ task functionalTest(type: Test) {
104
104
showStandardStreams = System . env. CI == ' true'
105
105
}
106
106
107
+ systemProperty ' failOnWarning' , project. hasProperty(' failOnWarning' )
108
+
107
109
mustRunAfter crossScalaVersionTest
108
110
}
109
111
check. dependsOn functionalTest
@@ -206,4 +208,4 @@ idea.project.settings {
206
208
taskTriggers {
207
209
beforeBuild fixIdeaPluginClasspath, pluginUnderTestMetadata
208
210
}
209
- }
211
+ }
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ private void configureArguments(String... arguments) {
127
127
fullArguments .add ("-PjunitVersion=5.3.2" );
128
128
fullArguments .add ("-PjunitPlatformVersion=1.3.2" );
129
129
fullArguments .add ("-PscalatestVersion=3.0.8" );
130
- fullArguments .add ("--warning-mode=all" );
130
+ if (Boolean .parseBoolean (System .getProperty ("failOnWarning" ))) {
131
+ fullArguments .add ("--warning-mode=fail" );
132
+ } else {
133
+ fullArguments .add ("--warning-mode=all" );
134
+ }
131
135
fullArguments .addAll (Arrays .asList (arguments ));
132
136
133
137
runner .withArguments (fullArguments );
You can’t perform that action at this time.
0 commit comments