forked from pynag/pynag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (31 loc) · 836 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install nagios3 check-mk-livestatus
- pip install unittest2==0.5.1
- pip install coveralls
- python setup.py build
- python setup.py install
- sudo chmod 777 /etc/nagios3/nagios.cfg
- sudo chmod a+rx '/var/cache/nagios3/'
- echo "broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/livestatus" >> /etc/nagios3/nagios.cfg
- sudo service nagios3 reload
before_script:
- env
- git config --global user.email "[email protected]"
- git config --global user.name "Travis"
script:
- coverage run --source=pynag tests/test.py
after_success:
- coveralls
notifications:
email: false
irc:
channels:
- "chat.freenode.net#pynag"
on_failure: always
on_success: change