]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - build.xml
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"/>
8 <target name=
"clean" description=
"Cleanup build artifacts">
9 <delete dir=
"${basedir}/var/cache"/>
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"/>
19 <exec executable=
"php">
20 <arg value=
"${basedir}/bin/console"/>
21 <arg value=
"doctrine:database:create"/>
22 <arg value=
"--env=test"/>
24 <exec executable=
"php">
25 <arg value=
"${basedir}/bin/console"/>
26 <arg value=
"doctrine:schema:create"/>
27 <arg value=
"--env=test"/>
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"/>
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"/>
43 <exec executable=
"php">
44 <arg value=
"${basedir}/bin/console"/>
45 <arg value=
"cache:clear"/>
46 <arg value=
"--env=test"/>
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"/>
54 <exec executable=
"php">
55 <arg value=
"${basedir}/bin/console"/>
56 <arg value=
"doctrine:database:create"/>
57 <arg value=
"--env=test"/>
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"/>
65 <exec executable=
"php">
66 <arg value=
"${basedir}/bin/console"/>
67 <arg value=
"doctrine:migrations:migrate"/>
68 <arg value=
"--no-interaction"/>
69 <arg value=
"--env=test"/>
71 <exec executable=
"php">
72 <arg value=
"${basedir}/bin/console"/>
73 <arg value=
"doctrine:fixtures:load"/>
74 <arg value=
"--no-interaction"/>
75 <arg value=
"--env=test"/>
79 <target name=
"prepare_sqlite" description=
"Run test for SQLite">
80 <delete dir=
"${basedir}/app/config/parameters.yml"/>
81 <exec executable=
"cp">
82 <arg value=
"${basedir}/app/config/tests/parameters_test.sqlite.yml"/>
83 <arg value=
"${basedir}/app/config/parameters_test.yml"/>
85 <exec executable=
"php">
86 <arg value=
"${basedir}/bin/console"/>
87 <arg value=
"cache:clear"/>
88 <arg value=
"--env=test"/>
90 <exec executable=
"php">
91 <arg value=
"${basedir}/bin/console"/>
92 <arg value=
"doctrine:database:drop"/>
93 <arg value=
"--force"/>
94 <arg value=
"--env=test"/>
96 <exec executable=
"php">
97 <arg value=
"${basedir}/bin/console"/>
98 <arg value=
"doctrine:database:create"/>
99 <arg value=
"--env=test"/>
101 <exec executable=
"php">
102 <arg value=
"${basedir}/bin/console"/>
103 <arg value=
"doctrine:schema:create"/>
104 <arg value=
"--env=test"/>
106 <exec executable=
"php">
107 <arg value=
"${basedir}/bin/console"/>
108 <arg value=
"doctrine:migrations:migrate"/>
109 <arg value=
"--no-interaction"/>
110 <arg value=
"--env=test"/>
112 <exec executable=
"php">
113 <arg value=
"${basedir}/bin/console"/>
114 <arg value=
"doctrine:fixtures:load"/>
115 <arg value=
"--no-interaction"/>
116 <arg value=
"--env=test"/>
120 <target name=
"prepare_pgsql" description=
"Run test for PostgreSQL">
121 <delete dir=
"${basedir}/app/config/parameters.yml"/>
122 <exec executable=
"cp">
123 <arg value=
"${basedir}/app/config/tests/parameters_test.pgsql.yml"/>
124 <arg value=
"${basedir}/app/config/parameters_test.yml"/>
126 <exec executable=
"php">
127 <arg value=
"${basedir}/bin/console"/>
128 <arg value=
"cache:clear"/>
129 <arg value=
"--env=test"/>
131 <exec executable=
"php">
132 <arg value=
"${basedir}/bin/console"/>
133 <arg value=
"doctrine:database:drop"/>
134 <arg value=
"--force"/>
135 <arg value=
"--env=test"/>
137 <exec executable=
"php">
138 <arg value=
"${basedir}/bin/console"/>
139 <arg value=
"doctrine:database:create"/>
140 <arg value=
"--env=test"/>
142 <exec executable=
"psql">
144 <arg value=
"localhost"/>
146 <arg value=
"wallabag_test"/>
148 <arg value=
"travis"/>
150 <arg value=
"data/sql/pgsql_base.sql"/>
152 <exec executable=
"php">
153 <arg value=
"${basedir}/bin/console"/>
154 <arg value=
"doctrine:migrations:migrate"/>
155 <arg value=
"--no-interaction"/>
156 <arg value=
"--env=test"/>
158 <exec executable=
"php">
159 <arg value=
"${basedir}/bin/console"/>
160 <arg value=
"doctrine:fixtures:load"/>
161 <arg value=
"--no-interaction"/>
162 <arg value=
"--env=test"/>
166 <target name=
"phpunit" description=
"Run unit tests with PHPUnit + HTML Coverage">
167 <exec executable=
"phpunit" failonerror=
"true">
168 <arg value=
"--coverage-html"/>
169 <arg value=
"build/coverage"/>