diff options
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -1,22 +1,14 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project name="wallabag" default="build"> | 2 | <project name="wallabag" default="build"> |
3 | <target name="build" depends="clean,composer,prepare,phpunit"/> | 3 | <target name="build" depends="clean,prepare,phpunit"/> |
4 | <target name="prepare-mysql" depends="clean,composer,db_mysql,prepare"/> | 4 | <target name="prepare-mysql" depends="clean,db_mysql,prepare"/> |
5 | <target name="prepare-sqlite" depends="clean,composer,db_sqlite,prepare"/> | 5 | <target name="prepare-sqlite" depends="clean,db_sqlite,prepare"/> |
6 | <target name="prepare-pgsql" depends="clean,composer,db_pgsql,prepare"/> | 6 | <target name="prepare-pgsql" depends="clean,db_pgsql,prepare"/> |
7 | 7 | ||
8 | <target name="clean" description="Cleanup build artifacts"> | 8 | <target name="clean" description="Cleanup build artifacts"> |
9 | <delete dir="${basedir}/var/cache"/> | 9 | <delete dir="${basedir}/var/cache"/> |
10 | </target> | 10 | </target> |
11 | 11 | ||
12 | <target name="composer" description="Install deps using Composer"> | ||
13 | <exec executable="composer"> | ||
14 | <arg value="install"/> | ||
15 | <arg value="--no-interaction"/> | ||
16 | <arg value="--no-progress"/> | ||
17 | </exec> | ||
18 | </target> | ||
19 | |||
20 | <target name="prepare" description="Prepare for build"> | 12 | <target name="prepare" description="Prepare for build"> |
21 | <exec executable="php"> | 13 | <exec executable="php"> |
22 | <arg value="${basedir}/bin/console"/> | 14 | <arg value="${basedir}/bin/console"/> |