aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 00000000..cd2dfa3c
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,43 @@
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</project>