File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! groovy
2
- @Library (' github.com/cloudogu/ces-build-lib@888733b ' )
2
+ @Library (' github.com/cloudogu/ces-build-lib@d207c94 ' )
3
3
import com.cloudogu.ces.cesbuildlib.*
4
4
5
5
node {
@@ -33,7 +33,11 @@ node {
33
33
}
34
34
35
35
stage(' Unit Test' ) {
36
- mvn " test"
36
+ mvn ' test'
37
+ }
38
+
39
+ stage(' Integration Test' ) {
40
+ mvn ' verify -DskipUnitTests'
37
41
}
38
42
}
39
43
Original file line number Diff line number Diff line change 81
81
<sonar .sources>src/main/groovy</sonar .sources>
82
82
<sonar .groovy.jacoco.reportPath>target/jacoco.exec</sonar .groovy.jacoco.reportPath>
83
83
<sonar .groovy.jacoco.itReportPath>target/jacoco-it.exec</sonar .groovy.jacoco.itReportPath>
84
+
85
+ <!-- Possibility to skip only the unit test. Can be useful when running only integration tests.
86
+ This can be used from the command line as follows: mvn <goals> -DskipUnitTests -->
87
+ <skipUnitTests >${skipTests}</skipUnitTests >
84
88
</properties >
85
89
86
90
<scm >
171
175
<includes >
172
176
<include >**/*Test</include >
173
177
</includes >
178
+ <!-- skips surefire tests without skipping failsafe tests.
179
+ Property value seems to magically default to false -->
180
+ <skipTests >${skipUnitTests} </skipTests >
174
181
</configuration >
175
182
</plugin >
176
183
You can’t perform that action at this time.
0 commit comments