summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..02fa084e
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,52 @@
1language: c
2
3before_install:
4 - sudo apt-get update -qq
5 - sudo apt-get purge -qq gawk
6
7install:
8 - sudo apt-get install -qq --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libradiusclient-ng-dev libkrb5-dev libnet-snmp-perl procps
9 - sudo apt-get install -qq --no-install-recommends libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader
10 - sudo apt-get install -qq --no-install-recommends fping snmp netcat smbclient fping pure-ftpd apache2 postfix
11 - sudo apt-get install -qq --no-install-recommends autoconf automake
12
13before_script:
14 - tools/setup
15 - ./configure
16 - make
17 - export NPTEST_CACHE="$(pwd)/plugins/t/NPTest.cache.travis"
18 - ssh-keygen -t dsa -N "" -f ~/.ssh/id_dsa
19 - cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
20 - ssh-keyscan localhost >> ~/.ssh/known_hosts
21 - touch ~/.ssh/config
22 - 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
23 - sudo mkdir -p /var/lib/snmp/mib_indexes
24
25script:
26 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make test; fi
27
28notifications:
29 irc:
30 channels:
31 - "chat.freenode.net#Monitoring-Plugins"
32 on_success: change
33 on_failure: always
34 skip_join: true
35 email:
36 - team@monitoring-plugins.org
37
38env:
39 global:
40 # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis
41 # encrypt" command using the project repository's public key.
42 - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo="
43
44addons:
45 coverity_scan:
46 project:
47 name: "monitoring-plugins/monitoring-plugins"
48 description: "Monitoring Plugins"
49 notification_email: team@monitoring-plugins.org
50 build_command_prepend: tools/setup && ./configure
51 build_command: make
52 branch_pattern: coverity.*