2016-09-20 02:12:26 +00:00
|
|
|
sudo: required
|
2016-03-03 20:04:09 +00:00
|
|
|
language: php
|
2017-04-07 14:07:44 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2016-03-03 17:56:29 +00:00
|
|
|
matrix:
|
2016-08-08 18:53:04 +00:00
|
|
|
fast_finish: true
|
|
|
|
include:
|
2018-01-12 14:11:04 +00:00
|
|
|
- php: 7.2
|
2017-07-18 21:33:36 +00:00
|
|
|
- php: 7.1
|
2017-01-25 20:12:29 +00:00
|
|
|
env: SKIP_STYLE_CHECK=1
|
2018-01-12 14:11:04 +00:00
|
|
|
- php: 7.0
|
2017-01-25 20:12:29 +00:00
|
|
|
env: SKIP_STYLE_CHECK=1
|
2017-07-18 21:33:36 +00:00
|
|
|
- php: 5.6
|
2017-08-26 20:35:39 +00:00
|
|
|
env: SKIP_STYLE_CHECK=1 EXECUTE_BUILD_DOCS=true
|
2017-01-25 20:12:29 +00:00
|
|
|
# - php: hhvm
|
|
|
|
# env: SKIP_STYLE_CHECK=1
|
2016-08-15 17:41:39 +00:00
|
|
|
|
2016-03-03 17:56:29 +00:00
|
|
|
allow_failures:
|
2016-08-08 18:53:04 +00:00
|
|
|
- php: hhvm
|
2016-08-15 17:41:39 +00:00
|
|
|
|
|
|
|
cache:
|
2017-01-25 20:12:29 +00:00
|
|
|
directories:
|
2016-08-15 17:41:39 +00:00
|
|
|
- vendor
|
2017-01-25 20:12:29 +00:00
|
|
|
- $HOME/.cache/pip
|
2016-08-15 17:41:39 +00:00
|
|
|
- $HOME/.composer/cache
|
2016-09-20 02:12:26 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get -qq update
|
2017-12-20 14:36:49 +00:00
|
|
|
- sudo apt-get install -y snmp fping
|
2017-04-07 14:07:44 +00:00
|
|
|
- mysql -e 'CREATE DATABASE librenms_phpunit_78hunjuybybh;'
|
2016-09-20 02:12:26 +00:00
|
|
|
|
|
|
|
install:
|
2016-08-15 17:41:39 +00:00
|
|
|
- composer install --prefer-dist --no-interaction
|
2018-03-14 20:25:19 +00:00
|
|
|
- pip install --user snmpsim pylint mysql-python
|
2016-09-20 02:12:26 +00:00
|
|
|
|
|
|
|
after_failure:
|
2018-01-21 19:36:21 +00:00
|
|
|
- tail /tmp/snmpsimd.log
|
2016-09-20 02:12:26 +00:00
|
|
|
|
2016-08-15 17:41:39 +00:00
|
|
|
script:
|
2016-09-20 02:12:26 +00:00
|
|
|
- php scripts/pre-commit.php -l
|
|
|
|
- php scripts/pre-commit.php -s
|
2018-02-05 13:39:13 +00:00
|
|
|
- php scripts/pre-commit.php -u --db --snmpsim --fail-fast
|
2016-11-03 07:42:29 +00:00
|
|
|
- bash -n daily.sh
|
2018-01-02 14:20:19 +00:00
|
|
|
- pylint -E poller-wrapper.py discovery-wrapper.py
|
|
|
|
- bash scripts/deploy-docs.sh
|