forked from librenms/librenms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.63 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo: required
language: php
services:
- mysql
matrix:
fast_finish: true
include:
- php: 7.1
env: EXECUTE_BUILD_SCHEMA=true
- php: 7.0
env: SKIP_STYLE_CHECK=1
- php: 5.3
sudo: required
dist: precise
env: SKIP_STYLE_CHECK=1
- php: 5.4
env: SKIP_STYLE_CHECK=1
- php: 5.5
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
- mysql -e 'CREATE DATABASE librenms_phpunit_78hunjuybybh;'
install:
- composer install --prefer-dist --no-interaction
- pip install --user pyasn1==0.2.2
- pip install --user snmpsim==0.3.1
- pip install --user pylint
before_script:
- python2 $HOME/.local/bin/snmpsimd.py --data-dir=$TRAVIS_BUILD_DIR/tests/snmpsim --agent-udpv4-endpoint=127.0.0.1:11161 --logging-method=file:/tmp/snmpsimd.log --daemon --pid-file=/tmp/snmpsimd.pid
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && test $EXECUTE_BUILD_SCHEMA == "true" && bash scripts/deploy-schema.sh
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && test $EXECUTE_BUILD_DOCS == "true" && bash scripts/deploy-docs.sh
after_failure:
- cat /tmp/snmpsimd.log
script:
- php scripts/pre-commit.php -l
- php scripts/pre-commit.php -s
- SNMPSIM=1 DBTEST=1 vendor/bin/phpunit --stop-on-failure
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py poller-service.py