james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject svn commit: r1726840 - in /james/project/trunk/dockerfiles/compilation/java-6: Dockerfile integration_tests.sh
Date Tue, 26 Jan 2016 16:18:05 GMT
Author: aduprat
Date: Tue Jan 26 16:18:05 2016
New Revision: 1726840

URL: http://svn.apache.org/viewvc?rev=1726840&view=rev
Log:
JAMES-1663 Provide a docker entry point playing integration tests on a running James. Contributed
by Duprat <antduprat@gmail.com>

Added:
    james/project/trunk/dockerfiles/compilation/java-6/integration_tests.sh
Modified:
    james/project/trunk/dockerfiles/compilation/java-6/Dockerfile

Modified: james/project/trunk/dockerfiles/compilation/java-6/Dockerfile
URL: http://svn.apache.org/viewvc/james/project/trunk/dockerfiles/compilation/java-6/Dockerfile?rev=1726840&r1=1726839&r2=1726840&view=diff
==============================================================================
--- james/project/trunk/dockerfiles/compilation/java-6/Dockerfile (original)
+++ james/project/trunk/dockerfiles/compilation/java-6/Dockerfile Tue Jan 26 16:18:05 2016
@@ -18,6 +18,7 @@ RUN apt-get install -y --force-yes git="
 
 # Copy the script
 COPY compile.sh /root/compile.sh
+COPY integration_tests.sh /root/integration_tests.sh
 
 # Define the entrypoint
 WORKDIR /james-parent

Added: james/project/trunk/dockerfiles/compilation/java-6/integration_tests.sh
URL: http://svn.apache.org/viewvc/james/project/trunk/dockerfiles/compilation/java-6/integration_tests.sh?rev=1726840&view=auto
==============================================================================
--- james/project/trunk/dockerfiles/compilation/java-6/integration_tests.sh (added)
+++ james/project/trunk/dockerfiles/compilation/java-6/integration_tests.sh Tue Jan 26 16:18:05
2016
@@ -0,0 +1,55 @@
+#!/bin/sh -e
+
+printUsage() {
+   echo "Usage : "
+   echo "./integration_tests.sh URL BRANCH JAMES_IP JAMES_IMAP_PORT"
+   echo "    JAMES_IP: IP of the James server to be tests"
+   echo "    JAMES_IMAP_PORT: Exposed IMAP port of this James server"
+   echo "    SHA1(optional): Branch to build or trunk if none"
+   exit 1
+}
+
+ORIGIN=/origin
+
+for arg in "$@"
+do
+   case $arg in
+      -*)
+         echo "Invalid option: -$OPTARG"
+         printUsage
+         ;;
+      *)
+         if ! [ -z "$1" ]; then
+            JAMES_ADDRESS=$1
+         fi
+         if ! [ -z "$2" ]; then
+            JAMES_IMAP_PORT=$2
+         fi
+         if ! [ -z "$3" ]; then
+            SHA1=$3
+         fi
+         ;;
+   esac
+done
+
+if [ -z "$JAMES_ADDRESS" ]; then
+   echo "You must provide a JAMES_ADDRESS"
+   printUsage
+fi
+
+if [ -z "$JAMES_IMAP_PORT" ]; then
+   echo "You must provide a JAMES_IMAP_PORT"
+   printUsage
+fi
+
+if [ -z "$SHA1" ]; then
+   SHA1=trunk
+fi
+
+export JAMES_ADDRESS=$JAMES_ADDRESS
+export JAMES_IMAP_PORT=$JAMES_IMAP_PORT
+
+git clone $ORIGIN/.
+git checkout $SHA1
+
+mvn -Dtest=ExternalJamesTest -DfailIfNoTests=false -pl org.apache.james:apache-james-mpt-external-james
-am test



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message