[monitoring-plugins] travis-ci: create MySQL database 'test'

Jan Wagner git at monitoring-plugins.org
Wed Jul 30 13:20:07 CEST 2014


 Module: monitoring-plugins
 Branch: master
 Commit: d8c20cc487f4dc361af553c57b8b4f8a4ab1dd29
 Author: Jan Wagner <waja at cyconet.org>
   Date: Wed Jul 30 13:04:09 2014 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d8c20cc

travis-ci: create MySQL database 'test'

---

 .travis.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index cec7878..2275be3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,8 @@ before_install:
   - sudo add-apt-repository -y ppa:waja/precise-backports
   - sudo apt-get update -qq
   - sudo apt-get purge -qq gawk
+  # ensure we have a test database in place for tests
+  - mysql -e "create database IF NOT EXISTS test;" -uroot
 
 install:
   - sudo apt-get install -qq --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps



More information about the Commits mailing list