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

Jan Wagner git at monitoring-plugins.org
Wed Aug 20 21:10:08 CEST 2014


 Module: monitoring-plugins
 Branch: maint
 Commit: 369dba6206d331f59f0b70804595141b2528c685
 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=369dba6

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