1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 03:59:52 +02:00

[ticket/12470] Move setup of database to new .sh

PHPBB3-12470
This commit is contained in:
Joas Schilling
2014-05-02 16:34:01 +02:00
parent acf9524710
commit 5cef3254f7
2 changed files with 27 additions and 4 deletions

View File

@@ -22,10 +22,7 @@ install:
- cd ..
before_script:
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3' -a '$DB' = 'mysql' ]; then mysql -e 'SET GLOBAL storage_engine=MyISAM;'; fi"
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
script:
- travis/phing-code-sniff.sh $DB $TRAVIS_PHP_VERSION