Skip to content

Commit 1b89107

Browse files
committed
build: skip unit tests by default
1 parent bfca180 commit 1b89107

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

build-coatjava.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ cp external-dependencies/jclara-4.3-SNAPSHOT.jar $prefix_dir/lib/utils
318318
# build (and test)
319319
unset CLAS12DIR
320320
if $runUnitTests; then
321-
$mvn install # also runs unit tests
321+
$mvn install -DskipTests=false
322322
else
323-
$mvn install -DskipTests
323+
$mvn install
324324
fi
325325

326326
# run spotbugs

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
</repository>
3030
</repositories>
3131

32+
<profiles>
33+
<profile> <!-- skip unit tests by default -->
34+
<id>skip-tests</id>
35+
<activation>
36+
<activeByDefault>true</activeByDefault>
37+
</activation>
38+
<properties>
39+
<skipTests>true</skipTests>
40+
</properties>
41+
</profile>
42+
</profiles>
43+
3244
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
3345

3446
<dependencyManagement>

0 commit comments

Comments
 (0)