librenms/.travis.yml

53 lines
1.5 KiB
YAML
Raw Normal View History

sudo: required
2016-03-03 20:04:09 +00:00
language: php
2016-03-03 17:56:29 +00:00
matrix:
2016-08-08 18:53:04 +00:00
fast_finish: true
include:
- php: 7.0
2016-08-08 18:53:04 +00:00
- php: 5.3
env: SKIP_STYLE_CHECK=1
2016-08-08 18:53:04 +00:00
- php: 5.4
env: SKIP_STYLE_CHECK=1
2016-08-08 18:53:04 +00:00
- php: 5.5
env: SKIP_STYLE_CHECK=1
2016-08-08 18:53:04 +00:00
- php: 5.6
env: SKIP_STYLE_CHECK=1 EXECUTE_BUILD_DOCS=true EXECUTE_BUILD_SCHEMA=true
# - php: hhvm
# env: SKIP_STYLE_CHECK=1
2016-03-03 17:56:29 +00:00
allow_failures:
2016-08-08 18:53:04 +00:00
- php: hhvm
cache:
directories:
- vendor
- $HOME/.cache/pip
- $HOME/.composer/cache
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y snmp
install:
- composer install --prefer-dist --no-interaction
- pip install --user pyasn1==0.2.2
- pip install --user snmpsim==0.3.1
2016-11-03 07:42:29 +00:00
- pip install --user pylint
before_script:
2016-09-23 20:07:00 +00:00
- 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
2016-08-19 13:37:44 +00:00
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
2016-08-19 13:37:44 +00:00
after_failure:
- cat /tmp/snmpsimd.log
script:
- php scripts/pre-commit.php -l
- php scripts/pre-commit.php -s
2017-03-09 05:22:34 +00:00
- SNMPSIM=1 DBTEST=1 vendor/bin/phpunit --stop-on-failure
2016-11-03 07:42:29 +00:00
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py poller-service.py