From a3117fbed6d3d4941287a3cc981a5c42eaabc1c9 Mon Sep 17 00:00:00 2001 From: Damien Harper Date: Mon, 29 Jul 2019 11:48:04 +0200 Subject: [PATCH] Fix failing Travis-CI builds (explicitely start MySQL/Postgresql services) --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac40b233..9376c6e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,8 @@ env: - DB=pgsql before_install: -# - if [[ $DB == 'mysql' && $MYSQL_VERSION == '5.7' ]]; then ./tests/travis/install-mysql-5.7.sh; fi - - if [[ $DB == 'mysql' ]]; then mysql -u root -e 'select version()'; fi - - if [[ $DB == 'pgsql' ]]; then psql -U postgres -c 'SHOW SERVER_VERSION'; fi + - if [[ $DB == 'mysql' ]]; then sudo systemctl start mysql && mysql -u root -e 'select version()'; fi + - if [[ $DB == 'pgsql' ]]; then sudo systemctl start postgresql && psql -U postgres -c 'SHOW SERVER_VERSION'; fi - composer self-update install: