mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
0def643e09
* Feature: Notify about failed updates, block detectable bad updates Ability to post notifications when the update fails. Detect and roll back updates that will cause broken installs. (Needs testing) Add severity to notifications, critical (2) notifications will display a toast. This will be used for removing in-tree dependencies and raising the minimum php version. * Improve naming a bit add phpdoc to new_notification In case multiple notifications are created, remove them all. * Remove notifications when update is disabled. * update travis to use db testing * added missing index
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
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
|