-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from bitExpert/feature/phing
Ported bitExpert internal Phing setup over to the disco package.
- Loading branch information
Showing
3 changed files
with
48 additions
and
8 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
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,4 +1,37 @@ | ||
<?xml version="1.0"?> | ||
<project name="disco" basedir="." default="security:check"> | ||
<import file="vendor/bitexpert/phing-securitychecker/build.xml" /> | ||
|
||
<target name="sniff"> | ||
<exec executable="./vendor/bin/phpcs" | ||
passthru="true" | ||
checkreturn="true"> | ||
<arg value="--standard=PSR2"/> | ||
<arg path="${phing.dir}/src"/> | ||
<arg path="${phing.dir}/tests"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="lint"> | ||
<exec executable="php" | ||
passthru="true" | ||
checkreturn="true"> | ||
<arg value="-l"/> | ||
<arg path="${phing.dir}/src"/> | ||
</exec> | ||
|
||
<exec executable="php" | ||
passthru="true" | ||
checkreturn="true"> | ||
<arg value="-l"/> | ||
<arg path="${phing.dir}/tests"/> | ||
</exec> | ||
</target> | ||
|
||
<target name="unit"> | ||
<exec executable="./vendor/bin/phpunit" | ||
passthru="true" | ||
checkreturn="true"> | ||
</exec> | ||
</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