]>
Commit | Line | Data |
---|---|---|
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 | <arg value="--working-dir=.."/> | |
15 | </exec> | |
16 | <exec executable="php"> | |
17 | <arg value="${basedir}/../app/console"/> | |
18 | <arg value="doctrine:database:drop"/> | |
19 | <arg value="--force"/> | |
20 | <arg value="--env=test"/> | |
21 | </exec> | |
22 | <exec executable="php"> | |
23 | <arg value="${basedir}/../app/console"/> | |
24 | <arg value="doctrine:database:create"/> | |
25 | <arg value="--env=test"/> | |
26 | </exec> | |
27 | <exec executable="php"> | |
28 | <arg value="${basedir}/../app/console"/> | |
29 | <arg value="doctrine:schema:create"/> | |
30 | <arg value="--env=test"/> | |
31 | </exec> | |
32 | <exec executable="php"> | |
33 | <arg value="${basedir}/../app/console"/> | |
34 | <arg value="cache:clear"/> | |
35 | <arg value="--env=test"/> | |
36 | </exec> | |
37 | <exec executable="php"> | |
38 | <arg value="${basedir}/../app/console"/> | |
39 | <arg value="doctrine:fixtures:load"/> | |
40 | <arg value="--no-interaction"/> | |
41 | <arg value="--env=test"/> | |
42 | </exec> | |
43 | </target> | |
44 | </project> |