|
3 | 3 | <available property="composer.exists" file="${composer.path}" />
|
4 | 4 | <available property="symlink.exists" file="${phpcs.symlink.path}" />
|
5 | 5 |
|
6 |
| - <target name="test" depends="vendor,lint,phpunit,phpcs" /> |
7 |
| - <target name="ci" depends="vendor,lint,phpunit" /> |
8 |
| - |
9 |
| - <target name="prepare" depends="clean" description="Prepare for build"> |
10 |
| - <mkdir dir="${basedir}/build/coverage" /> |
11 |
| - <mkdir dir="${basedir}/build/logs" /> |
12 |
| - </target> |
13 |
| - |
14 |
| - <target name="clean" description="Cleanup build artifacts"> |
15 |
| - <delete dir="${basedir}/build" /> |
16 |
| - </target> |
| 6 | + <target name="test" depends="vendor,lint,phpunit" /> |
17 | 7 |
|
18 | 8 | <target name="vendor" description="Load composer repositories" depends="composer">
|
19 | 9 | <exec executable="composer" failonerror="true">
|
|
35 | 25 | </apply>
|
36 | 26 | </target>
|
37 | 27 |
|
38 |
| - <target name="symlink-this-coding-standard" description="Symlink this coding standard" unless="symlink.exists"> |
39 |
| - <symlink link="${basedir}/${phpcs.symlink.path}" resource="${basedir}/Symfony3Custom"/> |
40 |
| - </target> |
41 |
| - |
42 | 28 | <target name="phpunit" depends="symlink-this-coding-standard" description="Run unit tests with PHPUnit">
|
43 | 29 | <exec executable="${phpunit.executable}" failonerror="true" >
|
| 30 | + <arg value="--verbose" /> |
44 | 31 | <arg value="--filter=Symfony3Custom_*" />
|
45 | 32 | <arg value="${phpcs.dir}/tests/AllTests.php" />
|
46 | 33 | </exec>
|
47 | 34 | </target>
|
48 | 35 |
|
49 |
| - <target name="phpcs" description="Find coding standard violations using PHP Code Sniffer"> |
50 |
| - <exec executable="phpcs" failonerror="true"> |
51 |
| - <arg value="--standard=${phpcs.standard}" /> |
52 |
| - <arg value="--extensions=php" /> |
53 |
| - <arg value="--ignore=vendor/*" /> |
54 |
| - <arg path="${basedir}" /> |
55 |
| - </exec> |
| 36 | + <target name="symlink-this-coding-standard" description="Symlink this coding standard" unless="symlink.exists"> |
| 37 | + <symlink link="${basedir}/${phpcs.symlink.path}" resource="${basedir}/Symfony3Custom"/> |
56 | 38 | </target>
|
57 | 39 | </project>
|
0 commit comments