final travis ci mysql fix

Signed-off-by: André Bauer <monotek23@gmail.com>
This commit is contained in:
André Bauer 2019-02-01 22:30:43 +01:00
parent 82c080263f
commit 5d044ee3b8

View file

@ -30,22 +30,18 @@ addons:
- libxslt1-dev - libxslt1-dev
- libyaml-0-2 - libyaml-0-2
- libyaml-dev - libyaml-dev
- mysql-client-5.7
- mysql-client-core-5.7
- mysql-server-5.7
- patch - patch
- pkg-config - pkg-config
- postfix - postfix
- sqlite3 - sqlite3
- zlib1g-dev - zlib1g-dev
services: services:
- postgresql
- mysql - mysql
- postgresql
language: ruby language: ruby
rvm: rvm:
- 2.4.4 - 2.4.4
before_install: before_install:
- export DEBIAN_FRONTEND=noninteractive
- gem update --system # Due to: https://github.com/travis-ci/travis-ci/issues/8978 - gem update --system # Due to: https://github.com/travis-ci/travis-ci/issues/8978
- git fetch --unshallow - git fetch --unshallow
- if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi - if [ "${DB}" = "mysql" ]; then mysql -u root -e "CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass';"; fi