|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 |
|
3 | 3 | <project name="Erfurt" default="build">
|
4 |
| - <target name="build" depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdoc,phpunit,phpcb"/> |
| 4 | + |
| 5 | + <target name="build-unit" depends="prepare,lint,phpunit,phpdoc" /> |
| 6 | + <target name="build-integration" depends="prepare,lint,phpunit-integration,phpdoc" /> |
| 7 | + <target name="build-full" depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdoc,phpunit-integration,phpcb" /> |
| 8 | + |
| 9 | + <target name="build" depends="build-integration"/> |
5 | 10 |
|
6 | 11 | <target name="clean" description="Cleanup build artifacts">
|
7 | 12 | <delete dir="${basedir}/build/api"/>
|
8 | 13 | <delete dir="${basedir}/build/code-browser"/>
|
9 | 14 | <delete dir="${basedir}/build/coverage"/>
|
| 15 | + <delete dir="${basedir}/build/coverage-integration"/> |
10 | 16 | <delete dir="${basedir}/build/logs"/>
|
11 | 17 | <delete dir="${basedir}/build/pdepend"/>
|
12 | 18 | </target>
|
|
15 | 21 | <mkdir dir="${basedir}/build/api"/>
|
16 | 22 | <mkdir dir="${basedir}/build/code-browser"/>
|
17 | 23 | <mkdir dir="${basedir}/build/coverage"/>
|
| 24 | + <mkdir dir="${basedir}/build/coverage-integration"/> |
18 | 25 | <mkdir dir="${basedir}/build/logs"/>
|
19 | 26 | <mkdir dir="${basedir}/build/pdepend"/>
|
20 | 27 | </target>
|
|
101 | 108 | <arg path="${basedir}/build/api" />
|
102 | 109 | </exec>
|
103 | 110 | </target>
|
| 111 | + |
| 112 | + <target name="directories"> |
| 113 | + <exec executable="make"> |
| 114 | + <arg value="directories" /> |
| 115 | + </exec> |
| 116 | + </target> |
104 | 117 |
|
105 |
| - <target name="phpunit" description="Run unit tests with PHPUnit"> |
106 |
| - <exec executable="phpunit" failonerror="true"/> |
| 118 | + <target name="phpunit" depends="directories" description="Run unit tests with PHPUnit"> |
| 119 | + <exec dir="${basedir}/tests/unit/" executable="phpunit" failonerror="true" /> |
| 120 | + </target> |
| 121 | + |
| 122 | + <target name="phpunit-integration" depends="phpunit" description="Run unit tests with PHPUnit"> |
| 123 | + <exec dir="${basedir}/tests/integration/" executable="phpunit" failonerror="true" /> |
107 | 124 | </target>
|
108 | 125 |
|
109 | 126 | <target name="phpcb" description="Aggregate tool output with PHP_CodeBrowser">
|
|
0 commit comments