Skip to content

Commit

Permalink
[ticket/12592] Rename mysql environment to mysqli.
Browse files Browse the repository at this point in the history
PHPBB3-12592
  • Loading branch information
bantu committed May 26, 2014
1 parent 26674bf commit c0dc0fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ php:
- hhvm

env:
- DB=mysql
- DB=mysqli

services:
- redis-server
Expand All @@ -22,7 +22,7 @@ before_script:
script:
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION
- 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:
include:
Expand Down
2 changes: 1 addition & 1 deletion travis/phing-sniff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -x
DB=$1
TRAVIS_PHP_VERSION=$2

if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysql" ]
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ]
then
cd build
../phpBB/vendor/bin/phing sniff
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions travis/setup-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ then
psql -c 'create database phpbb_tests;' -U postgres
fi

if [ "$TRAVIS_PHP_VERSION" == "5.3" -a "$DB" == "mysql" ]
if [ "$TRAVIS_PHP_VERSION" == "5.3" -a "$DB" == "mysqli" ]
then
mysql -e 'SET GLOBAL storage_engine=MyISAM;'
fi

if [ "$DB" == "mysql" -o "$DB" == "mariadb" ]
if [ "$DB" == "mysqli" -o "$DB" == "mariadb" ]
then
mysql -e 'create database IF NOT EXISTS phpbb_tests;'
fi

0 comments on commit c0dc0fc

Please sign in to comment.