From 6a6d64b99a79963a7cc82063556177d4b508eae2 Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Thu, 18 Jun 2015 23:23:00 +0200 Subject: [PATCH] Get some verbosity and debug on after_script.sh to troubleshoot timeouts on this phase Travis is using maven 3.2.5 and this script was setting an alternate maven path before running script Setting CATALINA_BASE and CATALINA_HOME is of no consequence while running jetty, just adds more problems Signed-off-by: Daan Hoogland --- tools/travis/before_script.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/travis/before_script.sh b/tools/travis/before_script.sh index cba50e005fd..1c39bf21b16 100755 --- a/tools/travis/before_script.sh +++ b/tools/travis/before_script.sh @@ -35,12 +35,13 @@ if [ $MOD -ne 0 ]; then fi -export CATALINA_BASE=/opt/tomcat -export CATALINA_HOME=/opt/tomcat -export M2_HOME="/usr/local/maven-3.2.1/" +#export CATALINA_BASE=/opt/tomcat +#export CATALINA_HOME=/opt/tomcat +#export M2_HOME="/usr/local/maven-3.2.1/" export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=500m" +echo -e "\nStarting simulator" +mvn -Dsimulator -pl :cloud-client-ui jetty:run 2>&1 > /tmp/jetty-log & -mvn -Dsimulator -pl :cloud-client-ui jetty:run 2>&1 > /dev/null & - -while ! nc -vz localhost 8096 2>&1 > /dev/null; do sleep 10; done +while ! nc -vz localhost 8096 2>&1 > /dev/null; do grep Exception /tmp/jetty-log; sleep 10; done +echo -e "\nStarting simulator" python -m marvin.deployDataCenter -i setup/dev/advanced.cfg 2>&1 || true