mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 17:28:56 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12592] Add PHP 5.4 environment using mysql driver. [ticket/12592] Rename mysql environment to mysqli.
This commit is contained in:
commit
cfa9d23988
5 changed files with 53 additions and 9 deletions
|
@ -8,7 +8,7 @@ php:
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=mysql
|
- DB=mysqli
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
@ -22,10 +22,12 @@ before_script:
|
||||||
script:
|
script:
|
||||||
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION
|
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION
|
||||||
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
||||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysqli' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -9,7 +9,7 @@ set -x
|
||||||
DB=$1
|
DB=$1
|
||||||
TRAVIS_PHP_VERSION=$2
|
TRAVIS_PHP_VERSION=$2
|
||||||
|
|
||||||
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysql" ]
|
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ]
|
||||||
then
|
then
|
||||||
cd build
|
cd build
|
||||||
../phpBB/vendor/bin/phing sniff
|
../phpBB/vendor/bin/phing sniff
|
||||||
|
|
|
@ -17,9 +17,6 @@
|
||||||
<exclude>../tests/functional</exclude>
|
<exclude>../tests/functional</exclude>
|
||||||
<exclude>../tests/lint_test.php</exclude>
|
<exclude>../tests/lint_test.php</exclude>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
<testsuite name="phpBB Lint Test">
|
|
||||||
<file>../tests/lint_test.php</file>
|
|
||||||
</testsuite>
|
|
||||||
<testsuite name="phpBB Functional Tests">
|
<testsuite name="phpBB Functional Tests">
|
||||||
<directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">../tests/functional</directory>
|
<directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">../tests/functional</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
@ -32,7 +29,7 @@
|
||||||
</groups>
|
</groups>
|
||||||
|
|
||||||
<php>
|
<php>
|
||||||
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mysqli" />
|
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mysql" />
|
||||||
<server name="PHPBB_TEST_DBHOST" value="0.0.0.0" />
|
<server name="PHPBB_TEST_DBHOST" value="0.0.0.0" />
|
||||||
<server name="PHPBB_TEST_DBPORT" value="3306" />
|
<server name="PHPBB_TEST_DBPORT" value="3306" />
|
||||||
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
|
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
|
||||||
|
|
45
travis/phpunit-mysqli-travis.xml
Normal file
45
travis/phpunit-mysqli-travis.xml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<?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 Lint Test">
|
||||||
|
<file>../tests/lint_test.php</file>
|
||||||
|
</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\mysqli" />
|
||||||
|
<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>
|
|
@ -15,12 +15,12 @@ then
|
||||||
psql -c 'create database phpbb_tests;' -U postgres
|
psql -c 'create database phpbb_tests;' -U postgres
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TRAVIS_PHP_VERSION" == "5.3" -a "$DB" == "mysql" ]
|
if [ "$TRAVIS_PHP_VERSION" == "5.3" -a "$DB" == "mysqli" ]
|
||||||
then
|
then
|
||||||
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
|
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DB" == "mysql" -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