Don't do unnecessary setup work
This commit is contained in:
parent
0995c9112b
commit
f399c063eb
13
.travis.yml
13
.travis.yml
|
@ -37,9 +37,16 @@ matrix:
|
||||||
- env: RAILS=5-2-stable DB=mysql
|
- env: RAILS=5-2-stable DB=mysql
|
||||||
- env: RAILS=5-2-stable DB=postgres
|
- env: RAILS=5-2-stable DB=postgres
|
||||||
before_script:
|
before_script:
|
||||||
- mysql -e 'create database ransack collate utf8_general_ci;'
|
- if [ "$DB" = "mysql" ];
|
||||||
- mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";'
|
then
|
||||||
- psql -c 'create database ransack;' -U postgres
|
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:
|
addons:
|
||||||
code_climate:
|
code_climate:
|
||||||
|
|
Loading…
Reference in New Issue