travis-ci: Install mariadb only if no MySQL is present

This commit is contained in:
Jan Wagner 2016-12-08 13:02:21 +01:00
parent 2724eb00de
commit 1b08d51310

View file

@ -54,7 +54,7 @@ install:
- sudo apt-get install -qq --no-install-recommends autoconf automake
- sudo apt-get install -qq --no-install-recommends faketime
# Trusty related dependencies (not yet provided)
- sudo apt-get install -qq --no-install-recommends mariadb-client mariadb-server
- test "$(dpkg -l | grep -E "mysql-(client|server)-[0-9].[0-9]" | grep -c ^ii)" -gt 0 || sudo apt-get install -qq --no-install-recommends mariadb-client mariadb-server
before_script:
# ensure we have a test database in place for tests