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

Christian Bayle cbayle at fusionforge.org
Sun Oct 2 23:43:50 CEST 2011


Author: cbayle
Date: 2011-10-02 23:43:50 +0200 (Sun, 02 Oct 2011)
New Revision: 14535

Modified:
   trunk/tests/scripts/fusionforge-build-and-test-src-deb.sh
Log:
Add 3rd party build and comments


Modified: trunk/tests/scripts/fusionforge-build-and-test-src-deb.sh
===================================================================
--- trunk/tests/scripts/fusionforge-build-and-test-src-deb.sh	2011-10-02 21:42:26 UTC (rev 14534)
+++ trunk/tests/scripts/fusionforge-build-and-test-src-deb.sh	2011-10-02 21:43:50 UTC (rev 14535)
@@ -9,6 +9,20 @@
 prepare_workspace
 start_vm_if_not_keeped $@
 
+# Build 3rd-party 
+make -C 3rd-party -f Makefile.deb BUILDRESULT=$BUILDRESULT LOCALREPODEB=$WORKSPACE/build/debian BUILDDIST=$DIST DEBMIRROR=$DEBMIRROR botclean botbuild
+
+# Setup debian repo
+ssh root@$HOST "echo \"deb $DEBMIRROR $DIST main\" > /etc/apt/sources.list"
+ssh root@$HOST "echo \"deb $DEBMIRRORSEC $DIST/updates main\" > /etc/apt/sources.list.d/security.list"
+
+ssh root@$HOST "echo \"deb file:/debian $DIST main\" >> /etc/apt/sources.list"
+scp -r $WORKSPACE/build/debian root@$HOST:/
+gpg --export --armor | ssh root@$HOST "apt-key add -"
+sleep 5
+ssh root@$HOST "apt-get update"
+
+
 cat > tests/build/config/phpunit <<-EOF
 HUDSON_URL=$HUDSON_URL
 JOB_NAME=$JOB_NAME
@@ -21,12 +35,15 @@
 echo "Run Install on $HOST"
 ssh root@$HOST "$FORGE_HOME/src/install-ng --auto --reinit"
 
+# Dump database
 echo "Dump freshly installed database"
 ssh root@$HOST "su - postgres -c \"pg_dumpall\" > /root/dump"
 
+# Stop cron
 echo "Stop cron daemon"
 ssh root@$HOST "service crond stop" || true
 
+# Run tests
 retcode=0
 echo "Run phpunit test on $HOST"
 if xterm -e "sh -c exit" 2>/dev/null




More information about the Fusionforge-commits mailing list