-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (39 loc) · 1.27 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
os: linux
dist: focal
language: python
services:
- docker
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
git:
submodules: false
before_install:
- openssl aes-256-cbc -K $encrypted_bda0cbd6e861_key -iv $encrypted_bda0cbd6e861_iv -in id_travis.enc -out ~/.ssh/id_travis -d
- chmod 600 ~/.ssh/*
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_travis
- git submodule update --init --recursive
install:
- pip install -r requirements.txt
- pip install pycodestyle
- docker build --rm -f "Dockerfile" -t icinga2-cli "."
- echo "const PluginDir = \"/usr/lib/nagios/plugins\"" > $(pwd)/constants.conf
- echo "const ManubulonPluginDir = \"/usr/lib/nagios/plugins\"" >> $(pwd)/constants.conf
- echo "const PluginContribDir = \"/usr/lib/nagios/plugins\"" >> $(pwd)/constants.conf
- echo "const NodeName = \"clarin-monitoring\"" >> $(pwd)/constants.conf
- echo "const ZoneName = \"clarin-monitoring\"" >> $(pwd)/constants.conf
- mkdir $(pwd)/features-enabled
script:
- find . -name "*.py" -exec pycodestyle {} \;
- python3 update_config.py --nopull --nosubmodule
- docker run --rm -v $(pwd):/etc/icinga2/ icinga2-cli
notifications:
email:
recipients:
on_success: always
on_failure: always