#!/bin/sh -x export CONFIG_PHP=func/config.php.buildbot export SELENIUM_RC_HOST=192.168.0.204 export SELENIUM_RC_DIR=$WORKSPACE/reports export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports export HOST=centos52.local export DB_NAME=fforge export CONFIGURED=true rm -fr $WORKSPACE/build/packages $WORKSPACE/reports $WORKSPACE/apidocs mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage $WORKSPACE/apidocs make build-doc DOXYGEN=$HOME/doxygen-1.6.3/bin/doxygen make BUILDRESULT=$WORKSPACE/build/packages buildtar cp gforge/rpm-specific/fusionforge.repo $WORKSPACE/build/packages/fusionforge.repo sed -i "s#http://fusionforge.org/#${HUDSON_URL}#" $WORKSPACE/build/packages/fusionforge.repo sed -i "s#baseurl = .*#baseurl = $FFORGE_RPM_REPO/#" $WORKSPACE/build/packages/fusionforge.repo cd tests phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml TarCentos52Tests.php cd .. cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml