]> git.immae.eu Git - github/wallabag/wallabag.git/blob - build.xml
Merge remote-tracking branch 'origin/v2' into v2_material
[github/wallabag/wallabag.git] / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="wallabag" default="build">
3 <target name="build" depends="prepare"/>
4
5 <target name="clean" description="Cleanup build artifacts">
6 <delete dir="${basedir}/app/cache"/>
7 </target>
8
9 <target name="prepare" depends="clean" description="Prepare for build">
10 <exec executable="composer">
11 <arg value="install"/>
12 <arg value="--no-interaction"/>
13 <arg value="--no-progress"/>
14 </exec>
15 <exec executable="php">
16 <arg value="${basedir}/app/console"/>
17 <arg value="doctrine:database:drop"/>
18 <arg value="--force"/>
19 <arg value="--env=test"/>
20 </exec>
21 <exec executable="php">
22 <arg value="${basedir}/app/console"/>
23 <arg value="doctrine:database:create"/>
24 <arg value="--env=test"/>
25 </exec>
26 <exec executable="php">
27 <arg value="${basedir}/app/console"/>
28 <arg value="doctrine:schema:create"/>
29 <arg value="--env=test"/>
30 </exec>
31 <exec executable="php">
32 <arg value="${basedir}/app/console"/>
33 <arg value="cache:clear"/>
34 <arg value="--env=test"/>
35 </exec>
36 <exec executable="php">
37 <arg value="${basedir}/app/console"/>
38 <arg value="doctrine:fixtures:load"/>
39 <arg value="--no-interaction"/>
40 <arg value="--env=test"/>
41 </exec>
42 </target>
43
44 <target name="phpunit" description="Run unit tests with PHPUnit + HTML Coverage">
45 <exec executable="phpunit" failonerror="true">
46 <arg value="--coverage-html"/>
47 <arg value="build/coverage"/>
48 </exec>
49 </target>
50 </project>