diff options
| author | Jan Wagner <waja@cyconet.org> | 2016-12-08 13:02:21 +0100 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2016-12-08 13:02:21 +0100 |
| commit | 1b08d5131089142b1e3090eafc0e537b8009ca63 (patch) | |
| tree | 1a7ac767f21ecf8dfcaa9e7d4fd0a8f84d1f87b9 | |
| parent | 2724eb00de0f685615cdf9f0e492ef3dbe323433 (diff) | |
| download | monitoring-plugins-1b08d51.tar.gz | |
travis-ci: Install mariadb only if no MySQL is present
| -rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 02a0eff3..78ebc30b 100644 --- a/.travis.yml +++ b/.travis.yml | |||
| @@ -54,7 +54,7 @@ install: | |||
| 54 | - sudo apt-get install -qq --no-install-recommends autoconf automake | 54 | - sudo apt-get install -qq --no-install-recommends autoconf automake |
| 55 | - sudo apt-get install -qq --no-install-recommends faketime | 55 | - sudo apt-get install -qq --no-install-recommends faketime |
| 56 | # Trusty related dependencies (not yet provided) | 56 | # Trusty related dependencies (not yet provided) |
| 57 | - sudo apt-get install -qq --no-install-recommends mariadb-client mariadb-server | 57 | - 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 |
| 58 | 58 | ||
| 59 | before_script: | 59 | before_script: |
| 60 | # ensure we have a test database in place for tests | 60 | # ensure we have a test database in place for tests |
