aboutsummaryrefslogtreecommitdiffstats
path: root/code_sniffer
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-10-04 14:26:29 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-10-04 14:26:29 +0000
commit3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1 (patch)
tree37928168f987b3f20ee813f2f3b739034709bf2e /code_sniffer
parent7909b729bbb1facce975b10da28754eb157723aa (diff)
downloadforums-3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1.tar
forums-3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1.tar.gz
forums-3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1.tar.bz2
forums-3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1.tar.xz
forums-3215bbf88864139dc8c7e9ac5773b1ea8a7e96c1.zip
Update code_sniffer build.xml file to be executable on our system
git-svn-id: file:///svn/phpbb/trunk@10207 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'code_sniffer')
-rw-r--r--code_sniffer/phpbb/build.xml66
1 files changed, 12 insertions, 54 deletions
diff --git a/code_sniffer/phpbb/build.xml b/code_sniffer/phpbb/build.xml
index e5d75b5393..b6d3bf6451 100644
--- a/code_sniffer/phpbb/build.xml
+++ b/code_sniffer/phpbb/build.xml
@@ -1,65 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="code_sniffer" basedir="." default="phpunit">
+<project name="code_sniffer" basedir="." default="install">
- <property name="cvs.module" value="pear/PHP_CodeSniffer" />
- <property name="working.dir" value="${basedir}/_work/code" />
- <property name="test.coverage" value="${basedir}/_work/coverage" />
+ <property name="working.dir" value="${basedir}" />
+ <property name="target.dir" value="/usr/share/php/PHP/CodeSniffer/Standards" />
- <target name="phpunit" depends="update,prepare">
- <exec executable="phpunit">
- <arg line="--coverage-html ${test.coverage}
- PHP_CodeSniffer_AllTests
- ${working.dir}/${cvs.module}/tests/AllTests.php" />
- </exec>
- </target>
-
- <target name="prepare">
- <delete dir="${working.dir}/${cvs.module}/CodeSniffer/Standards/phpbb" />
- <mkdir dir="${working.dir}/${cvs.module}/CodeSniffer/Standards/phpbb"/>
-
- <copy todir="${working.dir}/${cvs.module}/CodeSniffer/Standards/phpbb/Sniffs">
- <fileset dir="${basedir}/Sniffs" />
- </copy>
-
- <copy todir="${working.dir}/${cvs.module}/CodeSniffer/Standards/phpbb/Tests">
- <fileset dir="${basedir}/Tests" />
- </copy>
-
- <copy todir="${working.dir}/${cvs.module}/CodeSniffer/Standards/phpbb">
- <fileset file="${basedir}/phpbbCodingStandard.php" />
- </copy>
- </target>
-
- <target name="cleanup">
- <delete dir="${working.dir}" />
- </target>
-
- <target name="update">
- <exec executable="cvs" dir="${working.dir}/${cvs.module}">
- <arg line="up" />
- </exec>
- </target>
-
- <target name="checkout" depends="cleanup">
- <cvspass cvsroot=":pserver:cvsread@cvs.php.net:/repository" password="phpfi" />
- <cvs cvsRoot=":pserver:cvsread@cvs.php.net:/repository"
- package="${cvs.module}"
- dest="${working.dir}" />
- </target>
-
<!--
- Installs the sniffs on my local development machine
+ Install phpbb sniff
-->
<target name="install">
- <delete dir="/usr/local/pear/PEAR/PHP/CodeSniffer/Standards/phpbb" />
- <mkdir dir="/usr/local/pear/PEAR/PHP/CodeSniffer/Standards/phpbb" />
+ <delete dir="${target.dir}/phpbb" />
+ <mkdir dir="${target.dir}/phpbb"/>
- <copy todir="/usr/local/pear/PEAR/PHP/CodeSniffer/Standards/phpbb">
- <fileset file="${basedir}/phpbbCodingStandard.php" />
- </copy>
- <copy todir="/usr/local/pear/PEAR/PHP/CodeSniffer/Standards/phpbb/Sniffs">
- <fileset dir="${basedir}/Sniffs" />
+ <copy todir="${target.dir}/phpbb">
+ <fileset file="${working.dir}/phpbbCodingStandard.php" />
+ </copy>
+ <copy todir="${target.dir}/phpbb/Sniffs">
+ <fileset dir="${working.dir}/Sniffs" />
</copy>
+
</target>
</project>