Skip to content

Commit

Permalink
Moved build.xml back to root.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesallsup committed Aug 27, 2014
1 parent 0c96390 commit ea86cb3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/build.xml → build.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="OpenCart" default="build" basedir=".">
<property name="source" value="$WORKSPACE/upload"/>
<property name="source" value="upload"/>

<target name="clean" description="Cleanup build artifacts">
<delete dir="$WORKSPACE/tests/docs"/>
<delete dir="$WORKSPACE/tests/logs"/>
<delete dir="$WORKSPACE/tests/testresults"/>
<delete dir="${basedir}/tests/docs"/>
<delete dir="${basedir}/tests/logs"/>
<delete dir="${basedir}/tests/testresults"/>
</target>

<target name="prepare" depends="clean" description="Prepare for build">
<mkdir dir="$WORKSPACE/tests/docs"/>
<mkdir dir="$WORKSPACE/tests/logs"/>
<mkdir dir="$WORKSPACE/tests/testresults"/>
<mkdir dir="${basedir}/tests/docs"/>
<mkdir dir="${basedir}/tests/logs"/>
<mkdir dir="${basedir}/tests/testresults"/>
</target>

<target name="lint" description="Perform syntax check of source code files">
<apply executable="php" failonerror="true">
<arg value="-l"/>
<fileset dir="$WORKSPACE/upload">
<fileset dir="${basedir}/upload">
<include name="**/*.php"/>
<modified/>
</fileset>
Expand All @@ -27,14 +27,14 @@
<target name="phploc" description="Measure project size using PHPLOC">
<exec executable="phploc">
<arg value="--log-csv"/>
<arg value="$WORKSPACE/tests/logs/phploc.csv"/>
<arg path="$WORKSPACE/upload"/>
<arg value="${basedir}/tests/logs/phploc.csv"/>
<arg path="${basedir}/upload"/>
</exec>
</target>

<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer">
<exec executable="phpcs">
<arg line="--report=checkstyle --report-file=$WORKSPACE/tests/checkstyle.xml --standard=tests/phpcs/OpenCart/ruleset.xml --extensions=php ${source}/"/>
<arg line="--report=checkstyle --report-file=${basedir}/tests/checkstyle.xml --standard=tests/phpcs/OpenCart/ruleset.xml --extensions=php ${source}/"/>
</exec>
</target>

Expand Down

0 comments on commit ea86cb3

Please sign in to comment.