From 256d09a3ecd8a65bbfcfd5cacdee510baedc06da Mon Sep 17 00:00:00 2001 From: Daku Date: Fri, 10 Mar 2017 16:22:04 +0000 Subject: [PATCH] use multiline statements rather than multiple if statements --- .travis.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 309247f7..0743ff0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,12 +25,18 @@ before_install: install: - mkdir -p data/config - - if [[ "$DB" == "pgsql" ]]; then psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres; fi - - if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi - - if [[ "$DB" == "pgsql" ]]; then echo ' data/config/auto_install.conf.php ; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "SET GLOBAL general_log = 'ON';" -uroot; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi - - if [[ "$DB" == "mysql" ]]; then echo ' data/config/auto_install.conf.php ; fi + - | + if [[ "$DB" == "pgsql" ]]; then + psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; + psql -c "CREATE DATABASE shimmie;" -U postgres ; + echo ' data/config/auto_install.conf.php ; + fi + - | + if [[ "$DB" == "mysql" ]]; then + mysql -e "SET GLOBAL general_log = 'ON';" -uroot ; + mysql -e "CREATE DATABASE shimmie;" -uroot ; + echo ' data/config/auto_install.conf.php ; + fi - if [[ "$DB" == "sqlite" ]]; then echo ' data/config/auto_install.conf.php ; fi - composer install - php install.php