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 BASEDIR=${BASEDIR:-/~`id -un`/ws}
21 export SELENIUM_RC_URL=http://`hostname -f`$BASEDIR/reports
22 export FFORGE_DEB_REPO=http://`hostname -f`$BASEDIR/build/debian
23 export HOST=debian6.local
24 export SELENIUM_RC_HOST=localhost
27 . tests/openvz/config.default
28 if [ -f tests/openvz/config.`hostname` ] ; then . tests/openvz/config.`hostname`; fi
29 ARCH=`dpkg-architecture -qDEB_BUILD_ARCH`
30 export VZTEMPLATE=debian-$DEBVERS-$ARCH-minimal
33 export SELENIUM_RC_URL=${HUDSON_URL}job/$JOB_NAME/ws/reports
34 export FFORGE_DEB_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/debian
35 export HOST=debian6.local
38 export CONFIGURED=true
40 [ ! -d $WORKSPACE/build/packages ] || rm -fr $WORKSPACE/build/packages
41 mkdir -p $WORKSPACE/build/packages
42 # Comment out the next line when you don't want to rebuild all the time
43 [ ! -d $WORKSPACE/build/debian ] || rm -fr $WORKSPACE/build/debian
44 [ -d $WORKSPACE/build/debian ] || mkdir $WORKSPACE/build/debian
45 [ ! -d $WORKSPACE/reports ] || rm -fr $WORKSPACE/reports
46 mkdir -p $WORKSPACE/reports/coverage
48 (cd 3rd-party/php-mail-mbox ; make -f Makefile.debian BUILDRESULT=$WORKSPACE/build/packages LOCALREPODEB=$WORKSPACE/build/debian rsqueeze)
49 make -f Makefile.debian BUILDRESULT=$WORKSPACE/build/packages LOCALREPODEB=$WORKSPACE/build/debian rsqueeze
52 phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml DEBDebian60Tests.php
55 cp $WORKSPACE/reports/phpunit-selenium.xml $WORKSPACE/reports/phpunit-selenium.xml.org
56 xalan -in $WORKSPACE/reports/phpunit-selenium.xml.org -xsl fix_phpunit.xslt -out $WORKSPACE/reports/phpunit-selenium.xml