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:
@@ -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
|
||||
|
Reference in New Issue
Block a user