4 export WORKSPACE=${WORKSPACE:-$CURDIR}
6 export CONFIG_PHP=func/config.php.buildbotDEB
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 if [ -f tests/openvz/config.`hostname` ] ; then . tests/openvz/config.`hostname`; fi
28 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
29 export VZTEMPLATE=debian-$DEBVERS-$ARCH-minimal
32 export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
33 export FFORGE_DEB_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/debian
34 export HOST=debian6.local
37 export CONFIGURED=true
39 [ ! -d $WORKSPACE/build/packages ] || rm -fr $WORKSPACE/build/packages
40 mkdir -p $WORKSPACE/build/packages
41 # Comment out the next line when you don't want to rebuild all the time
42 [ ! -d $WORKSPACE/build/debian ] || rm -fr $WORKSPACE/build/debian
43 [ -d $WORKSPACE/build/debian ] || mkdir $WORKSPACE/build/debian
44 [ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
45 mkdir -p $WORKSPACE/reports/coverage
47 make -f Makefile.debian BUILDRESULT=$WORKSPACE/build/packages LOCALREPODEB=$WORKSPACE/build/debian rsqueeze
50 phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml DEBDebian60Tests.php
53 cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
54 xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml