Only run checkstyle in the H2 build

... so that CI jobs give a more complete report and developers
can fix code style and non-H2 DB tests in parallel.
This commit is contained in:
Yoann Rodière 2022-10-11 14:50:18 +02:00 committed by Christian Beikov
parent 6eba1efb83
commit 562466aaae
1 changed files with 7 additions and 0 deletions

View File

@ -40,5 +40,12 @@ elif [ "$RDBMS" == "tidb" ]; then
goal="-Pdb=tidb"
fi
# Only run checkstyle in the H2 build,
# so that CI jobs give a more complete report
# and developers can fix code style and non-H2 DB tests in parallel.
if [ -n "$goal" ]; then
goal="$goal -x checkstyleMain"
fi
# Clean by default otherwise the PackagedEntityManager tests fail on a node that previously ran a different DB
exec ./gradlew clean check ${goal} "${@}" -Plog-test-progress=true --stacktrace