update travis script

This commit is contained in:
Shinsuke Sugaya 2019-02-07 05:45:06 +09:00
parent 9a691cdcba
commit 625226a9c1
2 changed files with 17 additions and 1 deletions

View file

@ -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

16
.travis/run.sh Normal file
View file

@ -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