|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <project name="phpunit" default="setup" xmlns:if="ant:if" xmlns:unless="ant:unless">
|
3 | 3 | <target name="setup" depends="clean,install-dependencies"/>
|
4 |
| - <target name="validate" depends="php-syntax-check,validate-composer-json,validate-phpunit-xsd"/> |
5 | 4 |
|
6 | 5 | <target name="clean" unless="clean.done" description="Cleanup build artifacts">
|
7 | 6 | <delete dir="${basedir}/build/artifacts"/>
|
|
17 | 16 | <property name="prepare.done" value="true"/>
|
18 | 17 | </target>
|
19 | 18 |
|
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 |
| - |
30 | 19 | <target name="-dependencies-installed">
|
31 | 20 | <available type="dir" file="${basedir}/vendor" property="dependencies-installed"/>
|
32 | 21 | </target>
|
|
47 | 36 | <arg value="--no-progress"/>
|
48 | 37 | <arg value="--no-ansi"/>
|
49 | 38 | </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"/> |
95 | 39 | </target>
|
96 | 40 |
|
97 | 41 | <target name="signed-phar" depends="phar" description="Create signed PHAR archive of PHPUnit and all its dependencies">
|
|
0 commit comments