Skip to content

Commit

Permalink
Merge pull request #886 from PowerKiKi/mariadb
Browse files Browse the repository at this point in the history
Add test for MariaDB 5.5, 10.0 and 10.1 on Travis
  • Loading branch information
deeky666 committed Aug 21, 2015
2 parents 3ad19b4 + 4aa4f06 commit 933f635
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,81 @@ before_script:
script: ./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml

matrix:
include:
- php: 5.3
env: DB=mariadb
addons:
mariadb: 5.5
- php: 5.4
env: DB=mariadb
addons:
mariadb: 5.5
- php: 5.5
env: DB=mariadb
addons:
mariadb: 5.5
- php: 5.6
env: DB=mariadb
addons:
mariadb: 5.5
- php: 7.0
env: DB=mariadb
addons:
mariadb: 5.5
- php: hhvm
env: DB=mariadb
addons:
mariadb: 5.5

- php: 5.3
env: DB=mariadb
addons:
mariadb: 10.0
- php: 5.4
env: DB=mariadb
addons:
mariadb: 10.0
- php: 5.5
env: DB=mariadb
addons:
mariadb: 10.0
- php: 5.6
env: DB=mariadb
addons:
mariadb: 10.0
- php: 7.0
env: DB=mariadb
addons:
mariadb: 10.0
- php: hhvm
env: DB=mariadb
addons:
mariadb: 10.0

- php: 5.3
env: DB=mariadb
addons:
mariadb: 10.1
- php: 5.4
env: DB=mariadb
addons:
mariadb: 10.1
- php: 5.5
env: DB=mariadb
addons:
mariadb: 10.1
- php: 5.6
env: DB=mariadb
addons:
mariadb: 10.1
- php: 7.0
env: DB=mariadb
addons:
mariadb: 10.1
- php: hhvm
env: DB=mariadb
addons:
mariadb: 10.1
allow_failures:
- php: 7.0
- php: hhvm
Expand Down
31 changes: 31 additions & 0 deletions tests/travis/mariadb.travis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php">
<php>
<var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" />
<var name="db_username" value="travis" />
<var name="db_password" value="" />
<var name="db_name" value="doctrine_tests" />
<var name="db_port" value="3306"/>

<var name="tmpdb_type" value="pdo_mysql"/>
<var name="tmpdb_host" value="localhost" />
<var name="tmpdb_username" value="travis" />
<var name="tmpdb_password" value="" />
<var name="tmpdb_port" value="3306"/>
</php>

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>performance</group>
<group>locking_functional</group>
</exclude>
</groups>

</phpunit>

0 comments on commit 933f635

Please sign in to comment.