From 03f4250ce6f8981dd576cadd68365a360234d879 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Sat, 15 Dec 2012 21:03:32 +0100 Subject: [PATCH] Migration of build files from Jenkins --- build/README.TXT | 28 ++++++++ build/build.xml | 179 +++++++++++++++++++++++++++++++++++++++++++++++ build/phpcs.xml | 80 +++++++++++++++++++++ build/phpmd.xml | 9 +++ 4 files changed, 296 insertions(+) create mode 100644 build/README.TXT create mode 100644 build/build.xml create mode 100644 build/phpcs.xml create mode 100644 build/phpmd.xml diff --git a/build/README.TXT b/build/README.TXT new file mode 100644 index 00000000000..128571058d8 --- /dev/null +++ b/build/README.TXT @@ -0,0 +1,28 @@ +How to setup build.xml on your local machine? + +1.) Install ant + e.g. apt-get install ant + +2.) Install jslint + Get the latest distribution from http://code.google.com/p/jslint4java/ and + place jslint4java-*.jar in your home under .ant/lib/ + +3.) Install PHP qa tools + Run as root: + pear config-set auto_discover 1 + pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox + + Alternative: + pear install pear.phpunit.de/phploc + pear install pear.phpunit.de/phpcpd + pear install pear.phpmd.org/PHP_PMD + pear install pear.pdepend.org/PHP_Depend + pear install pear.php.org/PHP_CodeSniffer + pear install PHP_CodeSniffer + pear install pear.phpqatools.org/PHP_CodeBrowser + + +How to call this ant script? + ant -f build/build.xml -Dbasedir=. + + diff --git a/build/build.xml b/build/build.xml new file mode 100644 index 00000000000..3df77ad024e --- /dev/null +++ b/build/build.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +jQuery,$$,OC,$,oc_webroot,oc_appswebroots,oc_current_user,t,Files,FileList,FileActions,localStorage,OCCategories,EventSource,OCdialog,SVGSupport,dragOptions,dragOptions,folderDropOptions,formatDate,humanFileSize,procesSelection,relative_modified_date,scanFiles,simpleFileSize,simpleSize + + + + + + + + + + +jQuery,$$,OC,$,oc_webroot,oc_appswebroots,oc_current_user,t,Files,FileList,FileActions,localStorage,OCCategories,EventSource,OCdialog,SVGSupport,dragOptions,dragOptions,folderDropOptions,formatDate,humanFileSize,procesSelection,relative_modified_date,scanFiles,simpleFileSize,simpleSize + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/phpcs.xml b/build/phpcs.xml new file mode 100644 index 00000000000..1e10be1a111 --- /dev/null +++ b/build/phpcs.xml @@ -0,0 +1,80 @@ + + + The coding standard for PHP_CodeSniffer itself. + */Tests/* + */lib/MDB2/* + */3rdparty/* + *.min.* + */l10n/* + */files_texteditor/js/aceeditor/* + */files_pdfviewer/js/pdfjs/* + */files_odfviewer/src/* + */files_svgedit/svg-edit/* + *jquery-ui-1.8.16.custom.css + php + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/phpmd.xml b/build/phpmd.xml new file mode 100644 index 00000000000..3935a5b74b5 --- /dev/null +++ b/build/phpmd.xml @@ -0,0 +1,9 @@ + + + My custom rule set that checks my code... + + + + + + -- 2.39.5