From dcd2fe1cd82039837dc312e7f4b90fb8fc47b038 Mon Sep 17 00:00:00 2001
From: Gunnar Wrobel
Date: Wed, 25 Aug 2010 09:08:57 +0200
Subject: [PATCH] Add the configuration templates for the Hudson continuous
integration setup.
---
.../Element/data/hudson-element-build.xml.template | 90 +++++++
.../data/hudson-element-config.xml.template | 260 +++++++++++++++++++++
.../data/hudson-element-phpunit.xml.template | 25 ++
framework/Element/lib/Horde/Element/Constants.php | 42 ++++
framework/Element/package.xml | 18 +-
5 files changed, 432 insertions(+), 3 deletions(-)
create mode 100644 framework/Element/data/hudson-element-build.xml.template
create mode 100644 framework/Element/data/hudson-element-config.xml.template
create mode 100644 framework/Element/data/hudson-element-phpunit.xml.template
create mode 100644 framework/Element/lib/Horde/Element/Constants.php
diff --git a/framework/Element/data/hudson-element-build.xml.template b/framework/Element/data/hudson-element-build.xml.template
new file mode 100644
index 000000000..de25c101a
--- /dev/null
+++ b/framework/Element/data/hudson-element-build.xml.template
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/framework/Element/data/hudson-element-config.xml.template b/framework/Element/data/hudson-element-config.xml.template
new file mode 100644
index 000000000..68a62d6dc
--- /dev/null
+++ b/framework/Element/data/hudson-element-config.xml.template
@@ -0,0 +1,260 @@
+
+
+
+ %4$s
+
+ 5
+ 10
+ -1
+ -1
+
+ false
+
+
+ true
+ false
+ false
+
+ false
+
+
+ cp -r ${WORKSPACE}/../../%2$s/workspace/%1$s/* ${WORKSPACE}/
+echo "include_path = \".:${WORKSPACE}/lib:${WORKSPACE}/deps/pear/php:${WORKSPACE}/../../%3$s/php\"" > ${WORKSPACE}/php.ini
+php -c php.ini ../../%3$s/horde-element --install=${WORKSPACE}/deps ../../%2$s/workspace/%1$s
+php -c php.ini ../../%3$s/horde-element --ciprebuild=${WORKSPACE} ../../%2$s/workspace/%1$s
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [PMD]
+ low
+
+ false
+ false
+ build/logs/pmd.xml
+
+
+
+
+
+
+
+
+ [CHECKSTYLE]
+ low
+
+ false
+ false
+ build/logs/checkstyle.xml
+
+
+
+
+
+
+
+
+ [DRY]
+ low
+
+ false
+ false
+ build/logs/pmd-cpd.xml
+ 50
+ 25
+
+
+ build/logs/jdepend.xml
+
+
+ build/logs
+ clover.xml
+
+ 70
+ 80
+ 80
+
+
+
+
+
+
+
+
+
+
+
+
+ checkstyle
+
+ checkstyle
+ 10
+ 999
+ 999
+ false
+ build/logs/checkstyle.xml
+
+
+
+ cpd
+
+ cpd
+ 10
+ 999
+ 999
+ false
+ build/logs/pmd-cpd.xml
+
+
+
+ findbugs
+
+ findbugs
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ fxcop
+
+ fxcop
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ gendarme
+
+ gendarme
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ jcreport
+
+ jcreport
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ jslint
+
+ jslint
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ pmd
+
+ pmd
+ 10
+ 999
+ 999
+ false
+ build/logs/pmd.xml
+
+
+
+ pylint
+
+ pylint
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ simian
+
+ simian
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ stylecop
+
+ stylecop
+ 10
+ 999
+ 999
+ false
+
+
+
+
+ 100
+
+
+ default
+
+
+
+
+
+ API Documentation
+ build/api
+ index.html
+ false
+ htmlpublisher-wrapper.html
+
+
+ Code Browser
+ build/code-browser
+ index.html
+ false
+ htmlpublisher-wrapper.html
+
+
+ Code Coverage
+ build/coverage
+ index.html
+ false
+ htmlpublisher-wrapper.html
+
+
+
+
+
+
+ build/logs/junit.xml
+ true
+ true
+
+
+
+
+
+
diff --git a/framework/Element/data/hudson-element-phpunit.xml.template b/framework/Element/data/hudson-element-phpunit.xml.template
new file mode 100644
index 000000000..5a7fa0655
--- /dev/null
+++ b/framework/Element/data/hudson-element-phpunit.xml.template
@@ -0,0 +1,25 @@
+
+
+
+
+
+ test/Horde/%2$s
+
+
+
+
+
+
+
+
+
+
+
+ lib
+
+
+
diff --git a/framework/Element/lib/Horde/Element/Constants.php b/framework/Element/lib/Horde/Element/Constants.php
new file mode 100644
index 000000000..42f8e9fa5
--- /dev/null
+++ b/framework/Element/lib/Horde/Element/Constants.php
@@ -0,0 +1,42 @@
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Element
+ */
+
+/**
+ * Horde_Element_Constants:: provides the constants for this package.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Horde
+ * @package Element
+ * @author Gunnar Wrobel
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Element
+ */
+class Horde_Element_Constants
+{
+ const DATA_DIR = '@data_dir@';
+
+ static public function getDataDirectory()
+ {
+ if (strpos(self::DATA_DIR, '@data_dir') === 0) {
+ return join(
+ DIRECTORY_SEPARATOR,
+ array(dirname(__FILE__), '..', '..', '..', 'data')
+ );
+ }
+ return self::DATA_DIR . DIRECTORY_SEPARATOR . 'Element';
+ }
+}
diff --git a/framework/Element/package.xml b/framework/Element/package.xml
index 18e48260e..50b3f0252 100644
--- a/framework/Element/package.xml
+++ b/framework/Element/package.xml
@@ -24,8 +24,8 @@
jan@horde.org
yes
- 2010-08-23
-
+ 2010-08-25
+
0.0.1
0.0.1
@@ -40,6 +40,11 @@
+
+
+
+
+
@@ -53,6 +58,9 @@
+
+
+
@@ -120,9 +128,13 @@
+
+
+
+
@@ -151,7 +163,7 @@
alpha
alpha
- 2010-08-23
+ 2010-08-25
LGPL
* Initial release
--
2.11.0