From 594365e603fae5744bcaf4db7643c6dcf1d3c49f Mon Sep 17 00:00:00 2001 From: stianst Date: Thu, 22 Oct 2020 10:43:22 +0200 Subject: [PATCH] Fix ZipException in unit tests on Travis --- travis-run-tests.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/travis-run-tests.sh b/travis-run-tests.sh index 8ee3fcfb14..ca156444f9 100755 --- a/travis-run-tests.sh +++ b/travis-run-tests.sh @@ -56,22 +56,22 @@ if declare -f "should-tests-run-$1" > /dev/null && ! eval "should-tests-run-$1"; exit 0 fi -travis_fold start compile_keycloak -echo Compiling Keycloak -( while : ; do echo "Compiling, please wait..." ; sleep 50 ; done ) & -COMPILING_PID=$! -TMPFILE=`mktemp` -if ! mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pdistribution -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn &> "$TMPFILE"; then - cat "$TMPFILE" - exit 1 -fi -kill $COMPILING_PID -travis_fold end compile_keycloak - if [ $1 == "unit" ]; then - mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml test -B -DskipTestsuite + mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -DskipTestsuite # Generate documentation to catch potential issues earlier than during the release - mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml test -B -nsu -f services -Pjboss-release + mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -f services -Pjboss-release +else + travis_fold start compile_keycloak + echo Compiling Keycloak + ( while : ; do echo "Compiling, please wait..." ; sleep 50 ; done ) & + COMPILING_PID=$! + TMPFILE=`mktemp` + if ! mvn -s $TRAVIS_BUILD_DIR/maven-settings.xml install -B -nsu -Pdistribution -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn &> "$TMPFILE"; then + cat "$TMPFILE" + exit 1 + fi + kill $COMPILING_PID + travis_fold end compile_keycloak fi if [ $1 == "server-group1" ]; then