Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 67ef032

Browse files
committed
Updated
1 parent 08264ab commit 67ef032

1 file changed

Lines changed: 26 additions & 40 deletions

File tree

build.xml

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project name="webapp" default="noop">
2+
<project name="plates-assets-cache" basedir=".">
33

4-
<target name="noop"/>
5-
<property environment="env"/>
6-
7-
<tstamp>
8-
<format property="now" pattern="yyyy-MM-dd HH:mm:ss" locale="en,UK"/>
9-
<format property="now_num" pattern="yyyyMMddHHmmss" locale="en,UK"/>
10-
<format property="now_file" pattern="yyyy-MM-dd_HHmmss" locale="en,UK"/>
11-
</tstamp>
12-
13-
<!-- By default, we assume all tools to be on the $PATH -->
14-
<condition property="ext" value=".bat" else="">
4+
<condition property="ext" value=".bat">
155
<os family="windows"/>
166
</condition>
177

18-
<target name="phpunit" description="Run unit tests with PHPUnit">
19-
<exec executable="${basedir}/vendor/bin/phpunit${ext}" searchpath="true" resolveexecutable="true"
20-
failonerror="true" taskname="phpunit">
8+
<target name="phpunit" description="Run PHPUnit">
9+
<exec executable="${basedir}/vendor/bin/phpunit${ext}" searchpath="true" resolveexecutable="true" failonerror="true" taskname="phpunit">
2110
<arg value="--configuration"/>
2211
<arg path="${basedir}/phpunit.xml"/>
2312
</exec>
2413
</target>
2514

26-
<target name="phpunit-coverage" description="Run unit tests with PHPUnit with coverage">
15+
<target name="phpunit-coverage" description="Run PHPUnit with coverage">
2716
<delete dir="${basedir}/build/coverage"/>
2817
<mkdir dir="${basedir}/build/coverage"/>
29-
<exec executable="${basedir}/vendor/bin/phpunit${ext}" searchpath="true" resolveexecutable="true"
30-
failonerror="true" taskname="phpunit-coverage">
18+
<exec executable="${basedir}/vendor/bin/phpunit${ext}" searchpath="true" resolveexecutable="true" failonerror="true" taskname="phpunit-coverage">
3119
<arg value="--configuration"/>
3220
<arg path="${basedir}/phpunit.xml"/>
3321
<arg value="--coverage-clover"/>
@@ -37,42 +25,40 @@
3725
</exec>
3826
</target>
3927

40-
<target name="phpstan" description="PHP Static Analysis Tool - discover bugs in your code without running it">
41-
<mkdir dir="${basedir}/build"/>
42-
<get src="https://github.com/phpstan/phpstan/releases/download/0.9/phpstan.phar"
43-
dest="${basedir}/build/phpstan.phar" skipexisting="true"/>
44-
<exec executable="php" searchpath="true" resolveexecutable="true">
45-
<arg value="${basedir}/build/phpstan.phar"/>
46-
<arg value="analyse"/>
47-
<arg value="-l"/>
48-
<arg value="5"/>
49-
<arg value="-c"/>
50-
<arg path="${basedir}/phpstan.neon"/>
51-
<arg value="src"/>
52-
<arg value="tests"/>
53-
<arg value="--no-interaction"/>
54-
<arg value="--no-progress"/>
55-
</exec>
56-
</target>
57-
5828
<target name="fix-style" description="Code style fixer">
5929
<mkdir dir="${basedir}/build"/>
60-
<get src="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.0.0/php-cs-fixer.phar"
61-
dest="${basedir}/build/php-cs-fixer.phar" skipexisting="true"/>
30+
<get src="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.2/php-cs-fixer.phar" dest="${basedir}/build/php-cs-fixer.phar" skipexisting="true"/>
6231
<exec executable="php" searchpath="true" resolveexecutable="true">
6332
<arg value="${basedir}/build/php-cs-fixer.phar"/>
6433
<arg value="fix"/>
65-
<arg value="${basedir}/src/"/>
6634
<arg value="--rules=@PSR2"/>
6735
<arg value="--using-cache=no"/>
36+
<arg path="${basedir}/src"/>
6837
</exec>
6938
<exec executable="php" searchpath="true" resolveexecutable="true">
7039
<arg value="${basedir}/build/php-cs-fixer.phar"/>
7140
<arg value="fix"/>
72-
<arg value="${basedir}/tests/"/>
7341
<arg value="--rules=@PSR2"/>
7442
<arg value="--using-cache=no"/>
43+
<arg path="${basedir}/tests"/>
7544
</exec>
7645
</target>
7746

47+
<target name="phpstan" description="PHP Static Analysis Tool - discover bugs in your code without running it">
48+
<mkdir dir="${basedir}/build"/>
49+
<get src="https://github.com/phpstan/phpstan/releases/download/0.9.2/phpstan.phar"
50+
dest="${basedir}/build/phpstan.phar" skipexisting="true"/>
51+
<exec executable="php" searchpath="true" resolveexecutable="true" failonerror="true">
52+
<arg value="${basedir}/build/phpstan.phar"/>
53+
<arg value="analyse"/>
54+
<arg value="-l"/>
55+
<arg value="5"/>
56+
<arg value="-c"/>
57+
<arg path="${basedir}/phpstan.neon"/>
58+
<arg value="src"/>
59+
<arg value="tests"/>
60+
<arg value="--no-interaction"/>
61+
<arg value="--no-progress"/>
62+
</exec>
63+
</target>
7864
</project>

0 commit comments

Comments
 (0)