#!/bin/bash

set -e

if [ ${BUILD_TYPE} == 'deploy' ]; then
   ./mvnw clean package -B -T 3
else
   if [ ${RUN_SLOW_TESTS} == 'true' ]; then
       ./mvnw clean test -B -T 3 -Pslow-tests,skip-frontend
   else
       ./mvnw clean test -B -T 3
   fi
fi

#!/bin/bash

set -e

if [ ${BUILD_TYPE} == 'deploy' ]; then
   mvn clean package -B -T 3
else
   if [ ${RUN_SLOW_TESTS} == 'true' ]; then
       mvn clean test -B -T 3 -Pslow-tests,skip-frontend
   else
       mvn clean test -B -T 3
   fi
fi

--- 
+++ 
@@ -3,11 +3,11 @@
 set -e
 
 if [ ${BUILD_TYPE} == 'deploy' ]; then
-   mvn clean package -B -T 3
+   ./mvnw clean package -B -T 3
 else
    if [ ${RUN_SLOW_TESTS} == 'true' ]; then
-       mvn clean test -B -T 3 -Pslow-tests,skip-frontend
+       ./mvnw clean test -B -T 3 -Pslow-tests,skip-frontend
    else
-       mvn clean test -B -T 3
+       ./mvnw clean test -B -T 3
    fi
 fi
Update travis to use maven wrapper
