Skip to content

Commit 06abc97

Browse files
author
Vincent Langlet
committed
🔧 Clean ant command
1 parent 9e55beb commit 06abc97

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ composer.url = http://getcomposer.org/composer.phar
33
composer.path = ${basedir}/composer.phar
44

55
#PHP Code Sniffer
6-
phpcs.standard = PEAR
76
phpcs.dir = ${basedir}/vendor/squizlabs/php_codesniffer
87
phpcs.symlink.path = vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Symfony3Custom
8+
9+
# PHP Unit
910
phpunit.executable = vendor/phpunit/phpunit/phpunit

build.xml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@
33
<available property="composer.exists" file="${composer.path}" />
44
<available property="symlink.exists" file="${phpcs.symlink.path}" />
55

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" />
177

188
<target name="vendor" description="Load composer repositories" depends="composer">
199
<exec executable="composer" failonerror="true">
@@ -35,23 +25,15 @@
3525
</apply>
3626
</target>
3727

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-
4228
<target name="phpunit" depends="symlink-this-coding-standard" description="Run unit tests with PHPUnit">
4329
<exec executable="${phpunit.executable}" failonerror="true" >
30+
<arg value="--verbose" />
4431
<arg value="--filter=Symfony3Custom_*" />
4532
<arg value="${phpcs.dir}/tests/AllTests.php" />
4633
</exec>
4734
</target>
4835

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"/>
5638
</target>
5739
</project>

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ machine:
66

77
test:
88
override:
9-
- ant ci
9+
- ant test

0 commit comments

Comments
 (0)