aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.xml
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-03 19:20:08 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-03-03 19:20:08 +0100
commit8378485e332e11dcd59ed4fb8edac77b2f8f8d71 (patch)
tree72915c5a83a5d30889b81872b5941c9aa3962dc1 /build.xml
parentba7b9d48d407f87690a3fdc199b37714d2a52897 (diff)
downloadwallabag-8378485e332e11dcd59ed4fb8edac77b2f8f8d71.tar.gz
wallabag-8378485e332e11dcd59ed4fb8edac77b2f8f8d71.tar.zst
wallabag-8378485e332e11dcd59ed4fb8edac77b2f8f8d71.zip
Simplify build system
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>