From 8a0317c91ce25b75170a9c13acd6e065ce739e7a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 30 Jan 2020 03:10:10 +0100 Subject: [PATCH] Travis --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 84b8c25f1b1..f818f089fab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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;'