This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cosmetic code changes, added Ant file to automate building packages a…
…nd running code reports
- Loading branch information
Wayne Graham
committed
Oct 10, 2011
1 parent
1f4b243
commit 9272bee
Showing
7 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.*.sw*$ | ||
*~$ | ||
build/ | ||
dist/ | ||
TAGS | ||
.settings | ||
.hgignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project name="NeatlineMaps"> | ||
<property name="project.name" value="NeatlineMaps" /> | ||
<property name="build.dir" value="${basedir}/build" /> | ||
<property name="test.dir" value="${basedir}/tests" /> | ||
<property name="dist.dir" value="${basedir}/dist" /> | ||
|
||
<tstamp /> | ||
<property name="now" value="${DSTAMP}-${TSTAMP}" /> | ||
<property name="tar" value="${project.name}-${now}.tar" /> | ||
<property name="gzip" value="${tar}.gz" /> | ||
|
||
<target name="clean" description="Clean up the build directory"> | ||
<delete dir="${build.dir}" /> | ||
<delete dir="${dist.dir}" /> | ||
</target> | ||
|
||
<target name="setup" description="Create the directory structure for various reports"> | ||
<mkdir dir="${build.dir}/api" /> | ||
<mkdir dir="${build.dir}/code-browser" /> | ||
<mkdir dir="${build.dir}/coverage" /> | ||
<mkdir dir="${build.dir}/phpmd" /> | ||
<mkdir dir="${build.dir}/logs" /> | ||
</target> | ||
|
||
<target name="package" description="Create a gzipped package of the current branch for distribution"> | ||
<mkdir dir="${dist.dir}" /> | ||
|
||
<tar destfile="${dist.dir}/${project.name}-${now}.tar" | ||
basedir="${basedir}" | ||
excludes="${build.dir}/**, ${dist.dir}/**, ${test.dir}/**" /> | ||
<gzip zipfile="${dist.dir}/${gzip}" src="${dist.dir}/${tar}" /> | ||
|
||
<delete file="${dist.dir}/${tar}" /> | ||
</target> | ||
|
||
<target name="phpunit" depends="setup" description="Run PHPUnit tests and generate code coverage report"> | ||
<exec executable="phpunit" failonerror="false" /> | ||
</target> | ||
|
||
<target name="build" depends="clean,setup"> | ||
|
||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters