Don't do unnecessary setup work

This commit is contained in:
David Rodríguez 2019-08-17 14:10:13 +02:00
parent 0995c9112b
commit f399c063eb
No known key found for this signature in database
GPG Key ID: 1008A258BB37309C
1 changed files with 10 additions and 3 deletions

View File

@ -37,9 +37,16 @@ matrix:
- env: RAILS=5-2-stable DB=mysql
- env: RAILS=5-2-stable DB=postgres
before_script:
- mysql -e 'create database ransack collate utf8_general_ci;'
- mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";'
- psql -c 'create database ransack;' -U postgres
- if [ "$DB" = "mysql" ];
then
mysql -e 'create database ransack collate utf8_general_ci;';
mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";';
fi
- if [ "$DB" = "postgres" ];
then
psql -c 'create database ransack;' -U postgres;
fi
addons:
code_climate: