librenms/.travis.yml
Neil Lathwood 1ee2e8e0e0
Updated to use new theme for docs site (#9320)
* Updated to use new theme for docs site

* Updated theme location

* Removed librenms.css

* Updated index page + re-added librenms.css

* Use built in theme modification

* flexbox grid, dump bootstrap

* tidy up things

* Added path and updated deploy script + mkdocs config

* Removed db schmea changes

* Updated to install python/pip 3

* Removed pip3 install

* Pip3 install

* Updated deploy-docs

* Updated deploy-docs
2018-10-27 23:04:34 +01:00

51 lines
1.2 KiB
YAML

sudo: required
language: php
services:
- mysql
matrix:
fast_finish: true
include:
- php: 7.2
env: SKIP_STYLE_CHECK=1
- php: 7.1
env: SKIP_UNIT_CHECK=1
- php: 7.0
env: SKIP_STYLE_CHECK=1 SKIP_UNIT_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 python3-pip
- 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:
- set -e
- export FILES=$(git diff --diff-filter=d --name-only master | tr '\n' ' '|sed 's/,*$//g')
- php scripts/pre-commit.php -q -l
- php scripts/pre-commit.php -q -s
- php scripts/pre-commit.php -u --db --snmpsim --fail-fast
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py
- bash scripts/deploy-docs.sh
- set +e