Skip to content

Commit

Permalink
Fix ZipException in unit tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Oct 22, 2020
1 parent f5c5234 commit 594365e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions travis-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 594365e

Please sign in to comment.