mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Manually import file for PostgreSQL
This commit is contained in:
parent
a48b5d5a5a
commit
cafb105681
1 changed files with 13 additions and 8 deletions
21
build.xml
21
build.xml
|
@ -34,7 +34,7 @@
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="db_mysql" description="Run test for MySQL">
|
<target name="prepare_mysql" description="Run test for MySQL">
|
||||||
<delete dir="${basedir}/app/config/parameters.yml"/>
|
<delete dir="${basedir}/app/config/parameters.yml"/>
|
||||||
<exec executable="cp">
|
<exec executable="cp">
|
||||||
<arg value="${basedir}/app/config/tests/parameters_test.mysql.yml"/>
|
<arg value="${basedir}/app/config/tests/parameters_test.mysql.yml"/>
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="db_sqlite" description="Run test for SQLite">
|
<target name="prepare_sqlite" description="Run test for SQLite">
|
||||||
<delete dir="${basedir}/app/config/parameters.yml"/>
|
<delete dir="${basedir}/app/config/parameters.yml"/>
|
||||||
<exec executable="cp">
|
<exec executable="cp">
|
||||||
<arg value="${basedir}/app/config/tests/parameters_test.sqlite.yml"/>
|
<arg value="${basedir}/app/config/tests/parameters_test.sqlite.yml"/>
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="db_pgsql" description="Run test for PostgreSQL">
|
<target name="prepare_pgsql" description="Run test for PostgreSQL">
|
||||||
<delete dir="${basedir}/app/config/parameters.yml"/>
|
<delete dir="${basedir}/app/config/parameters.yml"/>
|
||||||
<exec executable="cp">
|
<exec executable="cp">
|
||||||
<arg value="${basedir}/app/config/tests/parameters_test.pgsql.yml"/>
|
<arg value="${basedir}/app/config/tests/parameters_test.pgsql.yml"/>
|
||||||
|
@ -146,11 +146,16 @@
|
||||||
<arg value="data/sql/pgsql_base.sql"/>
|
<arg value="data/sql/pgsql_base.sql"/>
|
||||||
<arg value="--env=test"/>
|
<arg value="--env=test"/>
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="php">
|
<exec executable="psql">
|
||||||
<arg value="${basedir}/bin/console"/>
|
<!-- psql -h host -d database -U username -f data/sql/pgsql_base.sql -->
|
||||||
<arg value="doctrine:migrations:migrate"/>
|
<arg value="-h"/>
|
||||||
<arg value="--no-interaction"/>
|
<arg value="localhost"/>
|
||||||
<arg value="--env=test"/>
|
<arg value="-d"/>
|
||||||
|
<arg value="wallabag_test"/>
|
||||||
|
<arg value="-U"/>
|
||||||
|
<arg value="travis"/>
|
||||||
|
<arg value="-f"/>
|
||||||
|
<arg value="data/sql/pgsql_base.sql"/>
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="php">
|
<exec executable="php">
|
||||||
<arg value="${basedir}/bin/console"/>
|
<arg value="${basedir}/bin/console"/>
|
||||||
|
|
Loading…
Reference in a new issue