mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/12592] Add PHP 5.4 environment using mysql driver.
PHPBB3-12592
This commit is contained in:
parent
c0dc0fc09b
commit
d90da12afc
3 changed files with 45 additions and 1 deletions
|
@ -26,6 +26,8 @@ script:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
- php: 5.4
|
||||||
|
env: DB=mysql
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
env: DB=mariadb
|
env: DB=mariadb
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
|
|
42
travis/phpunit-mysql-travis.xml
Normal file
42
travis/phpunit-mysql-travis.xml
Normal file
|
@ -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>
|
|
@ -20,7 +20,7 @@ then
|
||||||
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
|
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DB" == "mysqli" -o "$DB" == "mariadb" ]
|
if [ "$DB" == "mysql" -o "$DB" == "mysqli" -o "$DB" == "mariadb" ]
|
||||||
then
|
then
|
||||||
mysql -e 'create database IF NOT EXISTS phpbb_tests;'
|
mysql -e 'create database IF NOT EXISTS phpbb_tests;'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue