Skip to content

Commit

Permalink
MySQL is required for unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Apr 2, 2020
1 parent 14ba8fe commit 5d63378
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ php:
- '7.3'
- '7.4'

sudo: true

addons:
mariadb: '10.3'

before_install:
- mysql --version

install:
- rm -f composer.lock
- composer self-update
Expand Down
2 changes: 2 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

<!-- Runs all unit tests -->
<target name="unit">
<exec command="cat test/ddl/mysql/0010_create_database.sql | mysql -v -u root" passthru="true" checkreturn="true"/>
<exec command="cat test/ddl/mysql/0020_create_user.sql | mysql -v -u root" passthru="true" checkreturn="true"/>
<move file="test/psql/rename" tofile="test/psql/ test_escape ' &quot; @ $ ! ." overwrite="true" haltonerror="false"/>
<exec command="bin/phpunit" passthru="true" checkreturn="true"/>
<move file="test/psql/ test_escape ' &quot; @ $ ! ." tofile="test/psql/rename" overwrite="true"/>
Expand Down

0 comments on commit 5d63378

Please sign in to comment.