Skip to content

Commit 8a1a3dd

Browse files
Remove unused targets
1 parent 2157c27 commit 8a1a3dd

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

build.xml

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="phpunit" default="setup" xmlns:if="ant:if" xmlns:unless="ant:unless">
33
<target name="setup" depends="clean,install-dependencies"/>
4-
<target name="validate" depends="php-syntax-check,validate-composer-json,validate-phpunit-xsd"/>
54

65
<target name="clean" unless="clean.done" description="Cleanup build artifacts">
76
<delete dir="${basedir}/build/artifacts"/>
@@ -17,16 +16,6 @@
1716
<property name="prepare.done" value="true"/>
1817
</target>
1918

20-
<target name="validate-composer-json" depends="clean" unless="validate-composer-json.done" description="Validate composer.json">
21-
<exec executable="${basedir}/tools/composer" failonerror="true" taskname="composer">
22-
<arg value="validate"/>
23-
<arg value="--strict"/>
24-
<arg value="${basedir}/composer.json"/>
25-
</exec>
26-
27-
<property name="validate-composer-json.done" value="true"/>
28-
</target>
29-
3019
<target name="-dependencies-installed">
3120
<available type="dir" file="${basedir}/vendor" property="dependencies-installed"/>
3221
</target>
@@ -47,51 +36,6 @@
4736
<arg value="--no-progress"/>
4837
<arg value="--no-ansi"/>
4938
</exec>
50-
51-
<move file="${basedir}/build/tmp/composer.json" tofile="${basedir}/composer.json"/>
52-
<move file="${basedir}/build/tmp/composer.lock" tofile="${basedir}/composer.lock"/>
53-
</target>
54-
55-
<target name="check-dependencies" description="Performs check for outdated dependencies">
56-
<exec executable="${basedir}/tools/composer" taskname="composer">
57-
<arg value="show"/>
58-
<arg value="--minor-only"/>
59-
<arg value="--latest"/>
60-
<arg value="--direct"/>
61-
<arg value="--outdated"/>
62-
<arg value="--strict"/>
63-
</exec>
64-
</target>
65-
66-
<target name="php-syntax-check" unless="php-syntax-check.done" description="Perform syntax check on PHP files">
67-
<apply executable="php" failonerror="true" taskname="lint">
68-
<arg value="-l"/>
69-
70-
<fileset dir="${basedir}/src">
71-
<include name="**/*.php"/>
72-
<modified/>
73-
</fileset>
74-
75-
<fileset dir="${basedir}/tests">
76-
<include name="**/*.php"/>
77-
<modified/>
78-
</fileset>
79-
</apply>
80-
81-
<property name="php-syntax-check.done" value="true"/>
82-
</target>
83-
84-
<target name="validate-phpunit-xsd" unless="validate-phpunit-xsd.done" description="Validate phpunit.xsd">
85-
<exec executable="xmllint" failonerror="true" taskname="xmllint">
86-
<arg value="--noout"/>
87-
<arg path="${basedir}/phpunit.xsd"/>
88-
</exec>
89-
90-
<property name="validate-phpunit-xsd.done" value="true"/>
91-
</target>
92-
93-
<target name="test" depends="validate,install-dependencies" description="Run tests">
94-
<exec executable="${basedir}/phpunit" taskname="phpunit"/>
9539
</target>
9640

9741
<target name="signed-phar" depends="phar" description="Create signed PHAR archive of PHPUnit and all its dependencies">

0 commit comments

Comments
 (0)