diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-11-01 13:22:38 +0100 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2017-11-19 12:33:21 +0100 |
commit | 8bde7de1ee4b6944e3f3d3024ed619ac5980be27 (patch) | |
tree | 18de38922cb46d36ba245a1fc006c28449571edc /build.xml | |
parent | c20327fc723863ca985ac36a4eacec1699d57a31 (diff) | |
download | wallabag-8bde7de1ee4b6944e3f3d3024ed619ac5980be27.tar.gz wallabag-8bde7de1ee4b6944e3f3d3024ed619ac5980be27.tar.zst wallabag-8bde7de1ee4b6944e3f3d3024ed619ac5980be27.zip |
Replace ant with Makefile
Fixes #1735
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/build.xml b/build.xml deleted file mode 100644 index b9fe6136..00000000 --- a/build.xml +++ /dev/null | |||
@@ -1,136 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <project name="wallabag" default="build"> | ||
3 | <target name="build" depends="clean,prepare,phpunit"/> | ||
4 | <target name="prepare-mysql" depends="clean,prepare_mysql"/> | ||
5 | <target name="prepare-sqlite" depends="clean,prepare_sqlite"/> | ||
6 | <target name="prepare-pgsql" depends="clean,prepare_pgsql"/> | ||
7 | |||
8 | <target name="clean" description="Cleanup build artifacts"> | ||
9 | <delete dir="${basedir}/var/cache"/> | ||
10 | </target> | ||
11 | |||
12 | <target name="prepare" description="Prepare for build"> | ||
13 | <exec executable="php"> | ||
14 | <arg value="${basedir}/bin/console"/> | ||
15 | <arg value="doctrine:database:drop"/> | ||
16 | <arg value="--force"/> | ||
17 | <arg value="--env=test"/> | ||
18 | </exec> | ||
19 | <exec executable="php"> | ||
20 | <arg value="${basedir}/bin/console"/> | ||
21 | <arg value="doctrine:database:create"/> | ||
22 | <arg value="--env=test"/> | ||
23 | </exec> | ||
24 | <exec executable="php"> | ||
25 | <arg value="${basedir}/bin/console"/> | ||
26 | <arg value="doctrine:schema:create"/> | ||
27 | <arg value="--env=test"/> | ||
28 | </exec> | ||
29 | <exec executable="php"> | ||
30 | <arg value="${basedir}/bin/console"/> | ||
31 | <arg value="doctrine:fixtures:load"/> | ||
32 | <arg value="--no-interaction"/> | ||
33 | <arg value="--env=test"/> | ||
34 | </exec> | ||
35 | </target> | ||
36 | |||
37 | <target name="prepare_mysql" description="Run test for MySQL"> | ||
38 | <delete dir="${basedir}/app/config/parameters.yml"/> | ||
39 | <exec executable="cp"> | ||
40 | <arg value="${basedir}/app/config/tests/parameters_test.mysql.yml"/> | ||
41 | <arg value="${basedir}/app/config/parameters_test.yml"/> | ||
42 | </exec> | ||
43 | <exec executable="php"> | ||
44 | <arg value="${basedir}/bin/console"/> | ||
45 | <arg value="cache:clear"/> | ||
46 | <arg value="--env=test"/> | ||
47 | </exec> | ||
48 | <exec executable="php"> | ||
49 | <arg value="${basedir}/bin/console"/> | ||
50 | <arg value="doctrine:database:drop"/> | ||
51 | <arg value="--force"/> | ||
52 | <arg value="--env=test"/> | ||
53 | </exec> | ||
54 | <exec executable="php"> | ||
55 | <arg value="${basedir}/bin/console"/> | ||
56 | <arg value="doctrine:database:create"/> | ||
57 | <arg value="--env=test"/> | ||
58 | </exec> | ||
59 | <exec executable="php"> | ||
60 | <arg value="${basedir}/bin/console"/> | ||
61 | <arg value="doctrine:database:import"/> | ||
62 | <arg value="data/sql/mysql_base.sql"/> | ||
63 | <arg value="--env=test"/> | ||
64 | </exec> | ||
65 | </target> | ||
66 | |||
67 | <target name="prepare_sqlite" description="Run test for SQLite"> | ||
68 | <delete dir="${basedir}/app/config/parameters.yml"/> | ||
69 | <exec executable="cp"> | ||
70 | <arg value="${basedir}/app/config/tests/parameters_test.sqlite.yml"/> | ||
71 | <arg value="${basedir}/app/config/parameters_test.yml"/> | ||
72 | </exec> | ||
73 | <exec executable="php"> | ||
74 | <arg value="${basedir}/bin/console"/> | ||
75 | <arg value="cache:clear"/> | ||
76 | <arg value="--env=test"/> | ||
77 | </exec> | ||
78 | <exec executable="php"> | ||
79 | <arg value="${basedir}/bin/console"/> | ||
80 | <arg value="doctrine:database:drop"/> | ||
81 | <arg value="--force"/> | ||
82 | <arg value="--env=test"/> | ||
83 | </exec> | ||
84 | <exec executable="php"> | ||
85 | <arg value="${basedir}/bin/console"/> | ||
86 | <arg value="doctrine:database:create"/> | ||
87 | <arg value="--env=test"/> | ||
88 | </exec> | ||
89 | <exec executable="php"> | ||
90 | <arg value="${basedir}/bin/console"/> | ||
91 | <arg value="doctrine:schema:create"/> | ||
92 | <arg value="--env=test"/> | ||
93 | </exec> | ||
94 | </target> | ||
95 | |||
96 | <target name="prepare_pgsql" description="Run test for PostgreSQL"> | ||
97 | <delete dir="${basedir}/app/config/parameters.yml"/> | ||
98 | <exec executable="cp"> | ||
99 | <arg value="${basedir}/app/config/tests/parameters_test.pgsql.yml"/> | ||
100 | <arg value="${basedir}/app/config/parameters_test.yml"/> | ||
101 | </exec> | ||
102 | <exec executable="php"> | ||
103 | <arg value="${basedir}/bin/console"/> | ||
104 | <arg value="cache:clear"/> | ||
105 | <arg value="--env=test"/> | ||
106 | </exec> | ||
107 | <exec executable="php"> | ||
108 | <arg value="${basedir}/bin/console"/> | ||
109 | <arg value="doctrine:database:drop"/> | ||
110 | <arg value="--force"/> | ||
111 | <arg value="--env=test"/> | ||
112 | </exec> | ||
113 | <exec executable="php"> | ||
114 | <arg value="${basedir}/bin/console"/> | ||
115 | <arg value="doctrine:database:create"/> | ||
116 | <arg value="--env=test"/> | ||
117 | </exec> | ||
118 | <exec executable="psql"> | ||
119 | <arg value="-h"/> | ||
120 | <arg value="localhost"/> | ||
121 | <arg value="-d"/> | ||
122 | <arg value="wallabag_test"/> | ||
123 | <arg value="-U"/> | ||
124 | <arg value="travis"/> | ||
125 | <arg value="-f"/> | ||
126 | <arg value="data/sql/pgsql_base.sql"/> | ||
127 | </exec> | ||
128 | </target> | ||
129 | |||
130 | <target name="phpunit" description="Run unit tests with PHPUnit + HTML Coverage"> | ||
131 | <exec executable="phpunit" failonerror="true"> | ||
132 | <arg value="--coverage-html"/> | ||
133 | <arg value="build/coverage"/> | ||
134 | </exec> | ||
135 | </target> | ||
136 | </project> | ||