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 <daan@onecht.net>
This commit is contained in:
Rafael da Fonseca 2015-06-18 23:23:00 +02:00 committed by Daan Hoogland
parent b55ef551ca
commit 6a6d64b99a
1 changed files with 7 additions and 6 deletions

View File

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