diff --git a/drydocker/roundcubemail/test_integration.sh b/drydocker/roundcubemail/test_integration.sh new file mode 100644 index 0000000..bc28e17 --- /dev/null +++ b/drydocker/roundcubemail/test_integration.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +source /srv/stick.git/drydocker/generic_integration.sh + +# This installs Kolab Groupware +retval=$(_shell generic_integration_install) + +# This sets up Kolab Groupware +retval=$(_shell generic_integration_setup) + +set -x + +# The installed packages do not ship 'tests/' +pushd /usr/share/roundcubemail/ +rm -rf tests +# Use cp, or tests in Roundcube will use /srv/roundcubemail.git as a +# result of what physical file the symbolic links refer to. +cp -a /srv/roundcubemail.git/tests tests +popd + +# We cannot include firefox as a build dependency in the main package, +# because OSC so epically fails at downloading the associated blob. +yum -y install firefox + +chown apache /etc/roundcubemail/* + +egrep -- "\[testing\]" /etc/kolab/kolab.conf || \ + cat >> /etc/kolab/kolab.conf << EOF +[testing] +roundcube_url = /roundcubemail/ +roundcube_dir = /usr/share/roundcubemail +develmode = false +verbose = true + +phpunit_bin = /usr/bin/phpunit +selenium_server_jar = /usr/local/lib/selenium-server-standalone.jar +EOF + +pushd /srv/stick.git/integration/ +retval=$(_shell env NOSE_VERBOSE=2 nosetests -s R/all.py) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +popd