4 export WORKSPACE=${WORKSPACE:-$CURDIR}
6 export CONFIG_PHP=func/config.php.buildbot
7 export SELENIUM_RC_HOST=192.168.0.204
8 export SELENIUM_RC_DIR=$WORKSPACE/reports
9 if [ "x${HUDSON_URL}" = "x" ]
11 . tests/openvz/config.default
12 if [ -f tests/openvz/config.`hostname` ] ; then . tests/openvz/config.`hostname`; fi
14 export IPBASE=$IPDEBBASE
15 export IPDNS=$IPDEBDNS
16 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
17 export VZTEMPLATE=debian-$DEBVERS-$ARCH-minimal
20 export SELENIUM_RC_URL=http://`hostname -f`/ws/reports
21 export FFORGE_DEB_REPO=http://`hostname -f`/ws/build/debian
22 export HOST=debian6.local
23 export SELENIUM_RC_HOST=localhost
26 . tests/openvz/config.default
27 export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
28 export FFORGE_DEB_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/debian
29 export HOST=debian6.local
30 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
31 export VZTEMPLATE=debian-$DEBVERS-$ARCH-minimal
34 export CONFIGURED=true
36 [ ! -d $WORKSPACE/build/packages ] || rm -fr $WORKSPACE/build/packages
37 mkdir -p $WORKSPACE/build/packages
38 # Comment out the next line when you don't want to rebuild all the time
39 [ ! -d $WORKSPACE/build/debian ] || rm -fr $WORKSPACE/build/debian
40 [ -d $WORKSPACE/build/debian ] || mkdir $WORKSPACE/build/debian
41 [ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
42 mkdir -p $WORKSPACE/reports/coverage
44 make -f Makefile.debian BUILDRESULT=$WORKSPACE/build/packages LOCALREPODEB=$WORKSPACE/build/debian rsqueeze
47 phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml DEBDebian60Tests.php
50 cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
51 xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml