Update build scripts to limit forkCount for tests to 1.

This commit is contained in:
Corneil du Plessis
2023-06-09 15:52:54 +02:00
parent 704a6ef4b1
commit 681036401e
3 changed files with 12 additions and 5 deletions

View File

@@ -26,8 +26,7 @@ APP_FOLDER=$2
SKIP_DEPLOY=$3
set -e
check_env ARTIFACTORY_USERNAME
check_env ARTIFACTORY_PASSWORD
pushd "$PROJECT_FOLDER" >/dev/null
if [ "$VERSION" == "" ]; then
@@ -40,7 +39,10 @@ pushd "$PROJECT_FOLDER" >/dev/null
else
MAVEN_GOAL="install verify deploy"
fi
if [[ "$MAVEN_GOAL" == *"deploy"* ]]; then
check_env ARTIFACTORY_USERNAME
check_env ARTIFACTORY_PASSWORD
fi
if [[ "$VERSION" == "4."* ]]; then
JDKS="17"
if [ "$DEFAULT_JDK" == "" ]; then

View File

@@ -141,12 +141,12 @@ if ((RESULT == 0)); then
source "$FOLDER/set-env.sh"
fi
set +e
echo -e "Maven goals:${bold}-f $FOLDER $MAVEN_OPTS $MVN_THR "-DmavenThreads=$MAVEN_THREADS_OPT" $MAVEN_GOAL${end}"
echo -e "Maven goals:${bold}-f $FOLDER $MAVEN_OPTS $MVN_THR $MAVEN_GOAL${end}"
MVNW="./mvnw"
if [ ! -f $MVNW ]; then
MVNW="$SCDIR/mvnw"
fi
$MVNW -f "$FOLDER" $MAVEN_OPTS $MVN_THR "-DmavenThreads=$MAVEN_THREADS_OPT" $MAVEN_GOAL
$MVNW -f "$FOLDER" $MAVEN_OPTS $MVN_THR $MAVEN_GOAL
RESULT=$?
set -e
if ((RESULT != 0)); then

5
quick-compile.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
$SCDIR/build-core.sh "-T 0.5C install -P-snapshot -P-integration -DskipTests -q"
$SCDIR/build-folder.sh ./applications/processor,./applications/sink,./applications/source,./applications/stream-applications-integration-tests,stream-applications-release-train "-T 0.5C install -P-snapshot -P-integration -DskipTests -q"