Skip to content

Commit

Permalink
update travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Feb 6, 2019
1 parent 9a691cd commit 625226a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 16 additions & 0 deletions .travis/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 625226a

Please sign in to comment.