From c0dc0fc09bb825c40c4410275ae1e09ba7ad0107 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 26 May 2014 18:49:29 +0200 Subject: [ticket/12592] Rename mysql environment to mysqli. PHPBB3-12592 --- .travis.yml | 4 ++-- travis/phing-sniff.sh | 2 +- travis/phpunit-mysql-travis.xml | 45 ---------------------------------------- travis/phpunit-mysqli-travis.xml | 45 ++++++++++++++++++++++++++++++++++++++++ travis/setup-database.sh | 4 ++-- 5 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 travis/phpunit-mysql-travis.xml create mode 100644 travis/phpunit-mysqli-travis.xml diff --git a/.travis.yml b/.travis.yml index 3d79d156de..bf641fdb7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ php: - hhvm env: - - DB=mysql + - DB=mysqli services: - redis-server @@ -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: diff --git a/travis/phing-sniff.sh b/travis/phing-sniff.sh index 1473b99da4..04118af69a 100755 --- a/travis/phing-sniff.sh +++ b/travis/phing-sniff.sh @@ -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 diff --git a/travis/phpunit-mysql-travis.xml b/travis/phpunit-mysql-travis.xml deleted file mode 100644 index 60c279d774..0000000000 --- a/travis/phpunit-mysql-travis.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - ../tests - ../tests/functional - ../tests/lint_test.php - - - ../tests/lint_test.php - - - ../tests/functional - - - - - - slow - - - - - - - - - - - - - - - diff --git a/travis/phpunit-mysqli-travis.xml b/travis/phpunit-mysqli-travis.xml new file mode 100644 index 0000000000..60c279d774 --- /dev/null +++ b/travis/phpunit-mysqli-travis.xml @@ -0,0 +1,45 @@ + + + + + ../tests + ../tests/functional + ../tests/lint_test.php + + + ../tests/lint_test.php + + + ../tests/functional + + + + + + slow + + + + + + + + + + + + + + + diff --git a/travis/setup-database.sh b/travis/setup-database.sh index c1917042cd..0b578d180c 100755 --- a/travis/setup-database.sh +++ b/travis/setup-database.sh @@ -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 -- cgit v1.2.1