check_smtp.c: modified SSL check for use with -e
[monitoring-plugins.git] / .travis.yml
blob6af1feef3ddbd91aeaeddbec2dc359b51c67a405
1 language: c
3 before_install:
4   - sudo add-apt-repository -y ppa:waja/precise-backports
5   - sudo apt-get update -qq
6   - sudo apt-get purge -qq gawk
7   # ensure we have a test database in place for tests
8   - mysql -e "create database IF NOT EXISTS test;" -uroot
10 install:
11   - 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
12   - sudo apt-get install -qq --no-install-recommends libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd
13   - sudo apt-get install -qq --no-install-recommends fping snmp netcat smbclient fping pure-ftpd apache2 postfix libhttp-daemon-ssl-perl
14   - sudo apt-get install -qq --no-install-recommends libdbd-sybase-perl libnet-dns-perl
15   - sudo apt-get install -qq --no-install-recommends slapd ldap-utils
16   - sudo apt-get install -qq --no-install-recommends autoconf automake
17   - sudo apt-get install -qq --no-install-recommends faketime
19 before_script:
20   - tools/setup
21   - ./configure --enable-libtap
22   - make
23   - export NPTEST_CACHE="$(pwd)/plugins/t/NPTest.cache.travis"
24   - ssh-keygen -t dsa -N "" -f ~/.ssh/id_dsa
25   - cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
26   - ssh-keyscan localhost >> ~/.ssh/known_hosts
27   - touch ~/.ssh/config
28   - sudo rm -f /usr/share/mibs/ietf/SNMPv2-PDU /usr/share/mibs/ietf/IPSEC-SPD-MIB /usr/share/mibs/ietf/IPATM-IPMC-MIB /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
29   - sudo mkdir -p /var/lib/snmp/mib_indexes
31 script:
32   - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make test; fi
34 notifications:
35   irc:
36     channels:
37       - "chat.freenode.net#Monitoring-Plugins"
38     on_success: change
39     on_failure: always
40     skip_join: true
41   email:
42     - team@monitoring-plugins.org
44 env:
45   global:
46     # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis
47     # encrypt" command using the project repository's public key.
48     - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo="
50 addons:
51   coverity_scan:
52     project:
53       name: "monitoring-plugins/monitoring-plugins"
54       description: "Monitoring Plugins"
55     notification_email: team@monitoring-plugins.org
56     build_command_prepend: tools/setup && ./configure
57     build_command: make
58     branch_pattern: coverity.*