[Fusionforge-commits] r10444 - trunk/tests/scripts

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Sep 9 21:57:58 CEST 2010


Author: aljeux
Date: 2010-09-09 21:57:58 +0200 (Thu, 09 Sep 2010)
New Revision: 10444

Added:
   trunk/tests/scripts/fusionforge-trunk-build-and-test-rpm.sh
Modified:
   trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh
Log:
hudson: Factorize the build and test job from RPM

Modified: trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh
===================================================================
--- trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh	2010-09-09 19:30:31 UTC (rev 10443)
+++ trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh	2010-09-09 19:57:58 UTC (rev 10444)
@@ -9,8 +9,8 @@
 export DB_NAME=gforge
 export CONFIGURED=true
 
-rm -fr build/ reports/
-mkdir -p build/packages reports/coverage
+rm -fr $WORKSPACE/build $WORKSPACE/reports
+mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage
 
 make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all
 

Copied: trunk/tests/scripts/fusionforge-trunk-build-and-test-rpm.sh (from rev 10442, trunk/tests/scripts/fusionforge-github-build-and-test-rpm.sh)
===================================================================
--- trunk/tests/scripts/fusionforge-trunk-build-and-test-rpm.sh	                        (rev 0)
+++ trunk/tests/scripts/fusionforge-trunk-build-and-test-rpm.sh	2010-09-09 19:57:58 UTC (rev 10444)
@@ -0,0 +1,27 @@
+#!/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 FFORGE_RPM_REPO=${HUDSON_URL}job/$JOB_NAME/ws/build/packages
+export HOST=centos52.local
+export DB_NAME=gforge
+export CONFIGURED=true
+
+rm -fr $WORKSPACE/build $WORKSPACE/reports
+mkdir -p $WORKSPACE/build/packages $WORKSPACE/reports/coverage
+
+cd source
+make -f Makefile.rh BUILDRESULT=$WORKSPACE/build/packages all
+
+cp gforge/rpm-specific/fusionforge.repo build/packages/fusionforge.repo
+sed -i "s#http://fusionforge.org/#${HUDSON_URL}#" build/packages/fusionforge.repo
+sed -i "s#baseurl = .*#baseurl = $FFORGE_RPM_REPO/#" build/packages/fusionforge.repo
+
+cd tests
+phpunit --log-junit $WORKSPACE/reports/phpunit-selenium.xml RPMCentos52Tests.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




More information about the Fusionforge-commits mailing list