Skip to content

Commit 1ae0faf

Browse files
committed
verify.sh: make verify more debug-friendly
This commit adds two options to `maven verify`. The first, `-fae` (fail at end) makes the tests keep going after failures. If a test flakes, at least we'll still see the result of other tests. The second, `-DtrimStackTrace=false` prints full stack trace to make debugging easier. Finally, we dedup the command call.
1 parent 0c89651 commit 1ae0faf

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

utilities/verify.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
# This script is used by Travis-CI to run tests.
33
# This script is referenced in .travis.yml.
44

5+
mvn_opts="-DtrimStackTrace=false -fae --quiet -Djava.util.logging.config.file=logging.properties -P release"
6+
57
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
68
source ./utilities/integration_test_env.sh
79
# Get signing tools and API keyfile
810
openssl aes-256-cbc -K $encrypted_631490ecae8f_key -iv $encrypted_631490ecae8f_iv -in target/travis/signing-tools.tar.enc -out $TRAVIS_BUILD_DIR/signing-tools.tar -d
911
mkdir $TRAVIS_BUILD_DIR/signing-tools
1012
chmod 700 $TRAVIS_BUILD_DIR/signing-tools
1113
tar xvf $TRAVIS_BUILD_DIR/signing-tools.tar -C $TRAVIS_BUILD_DIR/signing-tools
12-
# Run verify
13-
mvn verify --quiet -Djava.util.logging.config.file=logging.properties -P release
1414
else
15-
mvn verify --quiet -Djava.util.logging.config.file=logging.properties -DskipITs -P release
15+
# Skip integration tests when testing pull requests.
16+
mvn_opts+=" -DskipITs"
1617
fi
18+
19+
# We don't quote expansion here, since we actually want space to separate the arguments.
20+
mvn verify $mvn_opts

0 commit comments

Comments
 (0)