forked from librenms/librenms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1014 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
sudo: required
language: php
services:
- mysql
matrix:
fast_finish: true
include:
- php: 7.2
- php: 7.1
env: SKIP_STYLE_CHECK=1
- php: 7.0
env: SKIP_STYLE_CHECK=1
- php: 5.6
env: SKIP_STYLE_CHECK=1 EXECUTE_BUILD_DOCS=true
# - php: hhvm
# env: SKIP_STYLE_CHECK=1
allow_failures:
- php: hhvm
cache:
directories:
- vendor
- $HOME/.cache/pip
- $HOME/.composer/cache
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y snmp fping
- mysql -e 'CREATE DATABASE librenms_phpunit_78hunjuybybh;'
- cp tests/config/config.test.php config.php
install:
- composer install --prefer-dist --no-interaction
- pip install --user snmpsim pylint mysql-python
after_failure:
- tail /tmp/snmpsimd.log
script:
- php scripts/pre-commit.php -q -l
- php scripts/pre-commit.php -q -s
- php scripts/pre-commit.php -q -u --db --snmpsim --fail-fast
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py
- bash scripts/deploy-docs.sh