2016-09-20 02:12:26 +00:00
|
|
|
sudo: required
|
2016-03-03 20:04:09 +00:00
|
|
|
language: php
|
2019-02-14 15:06:10 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2017-04-07 14:07:44 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
2019-02-14 15:06:10 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
APP_ENV=testing
|
2016-03-03 17:56:29 +00:00
|
|
|
matrix:
|
2016-08-08 18:53:04 +00:00
|
|
|
fast_finish: true
|
|
|
|
include:
|
2020-05-19 14:31:50 +00:00
|
|
|
- php: 7.4
|
2017-01-25 20:12:29 +00:00
|
|
|
env: SKIP_STYLE_CHECK=1
|
2020-05-19 14:31:50 +00:00
|
|
|
- php: 7.3
|
2019-04-23 00:01:39 +00:00
|
|
|
env: SKIP_UNIT_CHECK=1 BROWSER_TEST=1 CHROME_HEADLESS=1
|
2020-05-19 14:31:50 +00:00
|
|
|
- php: 7.2
|
2018-09-21 22:55:19 +00:00
|
|
|
env: SKIP_STYLE_CHECK=1 EXECUTE_BUILD_DOCS=true
|
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
|
2019-07-25 13:10:47 +00:00
|
|
|
- sudo apt-get install -y snmp fping python3-pip python3-setuptools
|
2019-01-14 12:44:23 +00:00
|
|
|
- mysql -e 'CREATE DATABASE librenms_phpunit_78hunjuybybh CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
|
2018-05-09 13:05:17 +00:00
|
|
|
- cp tests/config/config.test.php config.php
|
2016-09-20 02:12:26 +00:00
|
|
|
|
|
|
|
install:
|
2019-02-14 15:06:10 +00:00
|
|
|
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
|
|
|
|
- pip3 install --user snmpsim
|
|
|
|
- pip install --user mysql-python pylint
|
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
|
|
|
|
2019-02-14 15:06:10 +00:00
|
|
|
before_script:
|
2020-04-12 14:11:00 +00:00
|
|
|
- phpenv config-rm xdebug.ini
|
2020-03-20 21:37:36 +00:00
|
|
|
- test -z "$BROWSER_TEST" || php artisan dusk:update --detect
|
2019-02-14 15:06:10 +00:00
|
|
|
- test -z "$BROWSER_TEST" || php artisan serve --env=dusk.testing 2>/dev/null &
|
|
|
|
|
2016-08-15 17:41:39 +00:00
|
|
|
script:
|
2018-09-13 17:18:42 +00:00
|
|
|
- set -e
|
2018-09-18 02:32:41 +00:00
|
|
|
- export FILES=$(git diff --diff-filter=d --name-only master | tr '\n' ' '|sed 's/,*$//g')
|
2018-05-09 11:53:45 +00:00
|
|
|
- php scripts/pre-commit.php -q -l
|
|
|
|
- php scripts/pre-commit.php -q -s
|
2018-09-10 14:16:32 +00:00
|
|
|
- php scripts/pre-commit.php -u --db --snmpsim --fail-fast
|
2020-05-15 02:10:03 +00:00
|
|
|
- test -z "$BROWSER_TEST" || php artisan config:clear
|
2019-02-14 15:06:10 +00:00
|
|
|
- test -z "$BROWSER_TEST" || php artisan dusk
|
2016-11-03 07:42:29 +00:00
|
|
|
- bash -n daily.sh
|
2020-05-15 05:37:34 +00:00
|
|
|
- pylint -E poller-wrapper.py discovery-wrapper.py services-wrapper.py
|
2018-01-02 14:20:19 +00:00
|
|
|
- bash scripts/deploy-docs.sh
|
2018-09-13 17:18:42 +00:00
|
|
|
- set +e
|