#!/bin/bash

export PATH=\
/opt/buildout.python/bin:\
$PATH:

if [[ "$1" = "plone-4.3" ]]
then
    config=buildout-plone-4.3.cfg
fi

if [[ "$1" = "plone-5.0" ]]
then
    config=buildout-plone-5.0.cfg
fi

export WEBDAV_URL=http://dev1.veit-schiele.de:6080/exist/webdav/db

virtualenv-2.7 .
bin/pip install -U setuptools
bin/python bootstrap.py -c $config
bin/buildout -c $config
bin/test -s xmldirector
#bin/coverage run bin/test
