svn: /pear/packages/HTML_TagCloud/trunk/ build.default.properties build.xml

From: Date: Fri, 19 Feb 2010 09:19:22 +0000
Subject: svn: /pear/packages/HTML_TagCloud/trunk/ build.default.properties build.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-58804@lists.php.net to get a copy of this message
bastianonken Fri, 19 Feb 2010 09:19:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295247 Log: added build tools for validating sources and creating packages Changed paths: _U pear/packages/HTML_TagCloud/trunk/ A pear/packages/HTML_TagCloud/trunk/build.default.properties A pear/packages/HTML_TagCloud/trunk/build.xml Property changes on: pear/packages/HTML_TagCloud/trunk ___________________________________________________________________ Modified: svn:ignore - .project cache settings build build.xml + build Added: pear/packages/HTML_TagCloud/trunk/build.default.properties =================================================================== --- pear/packages/HTML_TagCloud/trunk/build.default.properties (rev 0) +++ pear/packages/HTML_TagCloud/trunk/build.default.properties 2010-02-19 09:19:22 UTC (rev 295247) @@ -0,0 +1,15 @@ +# insert path to your local php-executable +# e.g. "/usr/bin/php" or "c:/php5/php.exe" or just "php" if in PATH +php.executable.path= + +# insert path to your local pear-executable +# e.g. "/usr/bin/pear" or "c:/php5/pear.bat" or just "pear" if in PATH +pear.executable.path= + +# insert path to your local phpcs-executable +# e.g. "/usr/bin/phpccs" or "c:/php5/phpcs.bat" or just "phpcs" if in PATH +phpcs.executable.path= + +# insert path to your local pear installation dir +# e.g. "/usr/share/php/PEAR" or "c:/php5/php/PEAR" +install-raw.dest-dir= \ No newline at end of file Added: pear/packages/HTML_TagCloud/trunk/build.xml =================================================================== --- pear/packages/HTML_TagCloud/trunk/build.xml (rev 0) +++ pear/packages/HTML_TagCloud/trunk/build.xml 2010-02-19 09:19:22 UTC (rev 295247) @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<project name="HTML_TagCloud" basedir="." default="dist"> + <target name="info"> + <echo> +To create a new distributable package, run "dist" target. + +This Ant builder need these packages installed: +- PEAR +- pear/PHP_CodeSniffer +- pear/PEAR_PackageFileManager2 +- pear/PHP_CompatInfo +- phpunit/PHPUnit + +Additionally you have to create a "build.properties" file in which you have to +specify some environment variables to get this builder to run. +See "build.default.properties" file for any hints and rename it to +"build.properties" afterwards. + </echo> + </target> + <property file="build.properties" /> + <property name="install-raw.includes" value="TagCloud.php" /> + <property name="buildFailsIfCodingStandardsAreNotFulfilled" value="false" /> + <property name="dist.dir" value="${basedir}/dist" /> + <property name="dirs.ignoreCodingStandards" value="${dist.dir},tests" /> + <target name="clean"> + <delete dir="${dist.dir}" /> + </target> + <target name="checkCodingStandards" + description="check how well the sources comply to coding standards"> + <exec executable="${phpcs.executable.path}" + failonerror="${buildFailsIfCodingStandardsAreNotFulfilled}"> + <arg line="--ignore=${dirs.ignoreCodingStandards} ${basedir}" /> + </exec> + </target> + <target name="runAllTests" description="run all unit tests"> + <exec executable="${php.executable.path}" failonerror="true"> + <arg line="-f ${basedir}/tests/AllTests.php" /> + </exec> + </target> + <target name="generatePackageXML"> + <exec executable="${php.executable.path}" failonerror="true"> + <arg line="-f generatePackage.xml.php make" /> + </exec> + </target> + <target name="package-validate"> + <exec executable="${pear.executable.path}" failonerror="true"> + <arg line="package-validate package2.xml" /> + </exec> + </target> + <target name="package"> + <exec executable="${pear.executable.path}" failonerror="true"> + <arg line="package package2.xml" /> + </exec> + <mkdir dir="${dist.dir}" /> + <move todir="${dist.dir}" verbose="true"> + <fileset dir="${basedir}" includes="HTML_TagCloud-*.tgz" /> + </move> + </target> + <target name="dist" + depends="clean,checkCodingStandards,runAllTests,generatePackageXML,package-validate,package" + description="make a distributable package"> + <echo>Package file has been successfully stored in ${dist.dir}</echo> + </target> + <target name="install" + depends="dist" description="install package"> + <apply executable="${pear.executable.path}" failonerror="true"> + <arg line="install --force" /> + <fileset dir="${dist.dir}" includes="HTML_TagCloud*.tgz" /> + </apply> + </target> + <target name="install-raw" + description="quickly installs only main class file without building a package"> + <copy todir="${install-raw.dest-dir}/HTML" overwrite="true" verbose="true"> + <fileset dir="${basedir}" includes="${install-raw.includes}" /> + </copy> + </target> +</project>

« previous php.pear.cvs (#58804) next »