diff --git a/.travis.yml b/.travis.yml index 28ca5fd4b..f8be3ae7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,5 +23,5 @@ before_script: - bash .travis/before_script.sh script: - - mvn test -P integrationTests -Dtest.fess.url="http://127.0.0.1:8080" -Dtest.es.url="http://127.0.0.1:9201" + - bash .travis/run.sh diff --git a/.travis/run.sh b/.travis/run.sh new file mode 100644 index 000000000..75d73883c --- /dev/null +++ b/.travis/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +cd `dirname $0` +cd .. +BASE_DIR=`pwd` + +mvn test -P integrationTests -Dtest.fess.url="http://127.0.0.1:8080" -Dtest.es.url="http://127.0.0.1:9201" +ret=$? + +if [ $ret != 0 ] ; then + for f in `find $BASE_DIR -type f | grep surefire-reports | grep -v /TEST-` ; do + cat $f + done +fi + +exit $ret