Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 036a1f3

Browse files
committed
Only run Petclinic and security-kotlin tests by default to speedup the full build
1 parent bd15d43 commit 036a1f3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

scripts/compileWithGradle.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ rm -rf build
1111
mkdir -p build/native
1212

1313
echo "Packaging ${PWD##*/} with Gradle"
14-
./gradlew nativeTest nativeBuild &> build/native/output.txt
14+
# Only run security-kotlin tests to speedup the full build while still testing a Gradle project
15+
if [[ ${PWD##*/} == "security-kotlin" ]]
16+
then
17+
echo "Performing native testing for ${PWD##*/}"
18+
./gradlew nativeTest nativeBuild &> build/native/output.txt
19+
else
20+
./gradlew nativeBuild &> build/native/output.txt
21+
fi
1522

1623
if [[ -f build/native/${PWD##*/} ]]
1724
then

scripts/compileWithMaven.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ rm -rf target
1111
mkdir -p target/native
1212

1313
echo "Packaging ${PWD##*/} with Maven"
14-
mvn -ntp -Pnative package &> target/native/output.txt
14+
# Only run Petclinic tests to speedup the full build while still testing a complex testing scenario
15+
if [[ ${PWD##*/} == petclinic* ]]
16+
then
17+
echo "Performing native testing for ${PWD##*/}"
18+
mvn -ntp -Pnative package &> target/native/output.txt
19+
else
20+
mvn -ntp -DskipTests -Pnative package &> target/native/output.txt
21+
fi
22+
1523

1624
if [[ -f target/${PWD##*/} ]]
1725
then

0 commit comments

Comments
 (0)