Kaynağa Gözat

update travis script

Shinsuke Sugaya 6 yıl önce
ebeveyn
işleme
625226a9c1
2 değiştirilmiş dosya ile 17 ekleme ve 1 silme
  1. 1 1
      .travis.yml
  2. 16 0
      .travis/run.sh

+ 1 - 1
.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
 

+ 16 - 0
.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