This commit is contained in:
Laurent Destailleur 2020-01-30 03:10:10 +01:00
parent 5afcc0ba46
commit 8a0317c91c

View File

@ -15,12 +15,11 @@ services:
- postgresql
addons:
mariadb: '10.0'
postgresql: '9.3'
apt:
sources:
# To use the last version of pgloader, we add repo of postgresql
- pgdg-trusty
# To use the last version of pgloader, we add repo of postgresql with a name available in http://apt.postgresql.org/pub/repos/apt/
- pgdg-xenial
packages:
# We need a webserver to test the webservices
# Let's install Apache with.
@ -195,7 +194,7 @@ before_script:
echo "Setting up database"
if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then
echo "MySQL"
mysql -h 127.0.0.1 -u root -e 'DROP DATABASE IF EXISTS travis;'
mysql -u root -S -e 'DROP DATABASE IF EXISTS travis;'
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS travis;'
mysql -u travis -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;'
mysql -e 'FLUSH PRIVILEGES;'