[ticket/214] Add MariaDB environment to Travis-CI

B3P-214
This commit is contained in:
Marc Alexander
2014-02-08 22:47:02 +01:00
parent 69bff0fafb
commit 7ff415973f
3 changed files with 70 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ php:
- 5.5
env:
- DB=mariadb
- DB=mysql
- DB=postgres
@@ -30,7 +31,8 @@ before_script:
- cd ext/board3/portal
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
- sh -c "if [ '$DB' = 'mariadb' ]; then travis/setup-mariadb.sh; fi"
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
- travis/install-php-extensions.sh
- phpenv rehash
- sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi"