[monitoring-plugins] travis-ci: Install mariadb only if no MySQL is ...

Jan Wagner git at monitoring-plugins.org
Thu Dec 8 13:30:12 CET 2016


 Module: monitoring-plugins
 Branch: maint-2.2
 Commit: 2e905c39b8cd030fe05216219539ca99bec27f1d
 Author: Jan Wagner <waja at cyconet.org>
   Date: Thu Dec  8 13:02:21 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2e905c3

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

---

 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 5b34fb9..7dfde73 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,7 +55,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



More information about the Commits mailing list