summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml76
1 files changed, 0 insertions, 76 deletions
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 29290fd1..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,76 +0,0 @@
1sudo: required
2dist: trusty
3language: c
4
5before_install:
6 # Trusty related fixed
7 # multiverse is no on trusty activated (https://github.com/travis-ci/travis-ci/issues/4979)
8 - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
9 # /etc/hosts has IPv6 hosts (https://github.com/travis-ci/travis-ci/issues/4978)
10 - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts
11 # Trusty has running ntpd on localhost, but we don't like that for our tests
12 - sudo killall -9 ntpd
13 # Trusty has no swap, lets create some
14 - sudo fallocate -l 20M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile
15 - sudo add-apt-repository -y ppa:waja/trusty-backports
16 - sudo apt-get update -qq
17 - sudo apt-get purge -qq gawk
18 # http://docs.travis-ci.com/user/trusty-ci-environment/ indicates, no MySQL on Trusty (yet)
19 # # ensure we have a test database in place for tests
20 # - mysql -e "create database IF NOT EXISTS test;" -uroot
21
22install:
23 - 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
24 - sudo apt-get install -qq --no-install-recommends libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd
25 - sudo apt-get install -qq --no-install-recommends fping snmp netcat smbclient fping pure-ftpd apache2 postfix libhttp-daemon-ssl-perl
26 - sudo apt-get install -qq --no-install-recommends libdbd-sybase-perl libnet-dns-perl
27 - sudo apt-get install -qq --no-install-recommends slapd ldap-utils
28 - sudo apt-get install -qq --no-install-recommends autoconf automake
29 - sudo apt-get install -qq --no-install-recommends faketime
30 # Trusty related dependencies (not yet provided)
31 - sudo apt-get install -qq --no-install-recommends mariadb-client mariadb-server
32
33before_script:
34 # ensure we have a test database in place for tests
35 - mysql -e "create database IF NOT EXISTS test;" -uroot
36 # Detect LDAP configuration (seems volatile on trusty env)
37 - sed -e 's/cn=admin,dc=nodomain/'$(sudo /usr/sbin/slapcat|grep ^dn:|grep cn=|awk '{print $2}')'/' -i plugins/t/NPTest.cache.travis
38 - tools/setup
39 - ./configure --enable-libtap
40 - make
41 - export NPTEST_CACHE="$(pwd)/plugins/t/NPTest.cache.travis"
42 - ssh-keygen -t dsa -N "" -f ~/.ssh/id_dsa
43 - cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
44 - ssh-keyscan localhost >> ~/.ssh/known_hosts
45 - touch ~/.ssh/config
46 - 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
47 - sudo mkdir -p /var/lib/snmp/mib_indexes
48
49script:
50 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make test; fi
51
52notifications:
53 irc:
54 channels:
55 - "chat.freenode.net#Monitoring-Plugins"
56 on_success: change
57 on_failure: always
58 skip_join: true
59 email:
60 - team@monitoring-plugins.org
61
62env:
63 global:
64 # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis
65 # encrypt" command using the project repository's public key.
66 - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo="
67
68addons:
69 coverity_scan:
70 project:
71 name: "monitoring-plugins/monitoring-plugins"
72 description: "Monitoring Plugins"
73 notification_email: team@monitoring-plugins.org
74 build_command_prepend: tools/setup && ./configure
75 build_command: make
76 branch_pattern: coverity.*