aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-05-26 19:06:21 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-05-26 19:07:40 +0200
commitd90da12afc3cbe107b0535fb1271d2248bc214bd (patch)
tree4b022fbf7cea81e371c33d58fa85421a591c0a49 /travis
parentc0dc0fc09bb825c40c4410275ae1e09ba7ad0107 (diff)
downloadforums-d90da12afc3cbe107b0535fb1271d2248bc214bd.tar
forums-d90da12afc3cbe107b0535fb1271d2248bc214bd.tar.gz
forums-d90da12afc3cbe107b0535fb1271d2248bc214bd.tar.bz2
forums-d90da12afc3cbe107b0535fb1271d2248bc214bd.tar.xz
forums-d90da12afc3cbe107b0535fb1271d2248bc214bd.zip
[ticket/12592] Add PHP 5.4 environment using mysql driver.
PHPBB3-12592
Diffstat (limited to 'travis')
-rw-r--r--travis/phpunit-mysql-travis.xml42
-rwxr-xr-xtravis/setup-database.sh2
2 files changed, 43 insertions, 1 deletions
diff --git a/travis/phpunit-mysql-travis.xml b/travis/phpunit-mysql-travis.xml
new file mode 100644
index 0000000000..21122ccaeb
--- /dev/null
+++ b/travis/phpunit-mysql-travis.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit backupGlobals="true"
+ backupStaticAttributes="true"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="true"
+ strict="true"
+ verbose="true"
+ bootstrap="../tests/bootstrap.php">
+ <testsuites>
+ <testsuite name="phpBB Test Suite">
+ <directory suffix="_test.php">../tests</directory>
+ <exclude>../tests/functional</exclude>
+ <exclude>../tests/lint_test.php</exclude>
+ </testsuite>
+ <testsuite name="phpBB Functional Tests">
+ <directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">../tests/functional</directory>
+ </testsuite>
+ </testsuites>
+
+ <groups>
+ <exclude>
+ <group>slow</group>
+ </exclude>
+ </groups>
+
+ <php>
+ <server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mysql" />
+ <server name="PHPBB_TEST_DBHOST" value="0.0.0.0" />
+ <server name="PHPBB_TEST_DBPORT" value="3306" />
+ <server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
+ <server name="PHPBB_TEST_DBUSER" value="root" />
+ <server name="PHPBB_TEST_DBPASSWD" value="" />
+ <server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
+ <server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
+ <server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
+ </php>
+</phpunit>
diff --git a/travis/setup-database.sh b/travis/setup-database.sh
index 0b578d180c..8c19086191 100755
--- a/travis/setup-database.sh
+++ b/travis/setup-database.sh
@@ -20,7 +20,7 @@ then
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
fi
-if [ "$DB" == "mysqli" -o "$DB" == "mariadb" ]
+if [ "$DB" == "mysql" -o "$DB" == "mysqli" -o "$DB" == "mariadb" ]
then
mysql -e 'create database IF NOT EXISTS phpbb_tests;'
fi