librenms/.travis.yml
Tony Murray ce21011aff
Rewrite development helper to lnms dev:check (#11650)
* Refactor pre-commit to class

* docs build

* dusk check

* ci mode for checks

* full checks

* other mysql

* make other lint checks actually work
fix pylint finding

* ci is a long opt

* fix undefined index

* dusk fully working

* ask for forgiveness, not permission

* fix whitespace

* skip dusk sometimes

* Handle 3com and other os with digits

* flags instead of if else spaghetti

* convert to command

* cleanup

* missed check

* fixes

* case

* self-check :D

* argument now

* fix bugs from refactors

* another fix

* adjust file change parsing

* refactor execut a bit

* fallback to global quiet when unknown type.

* allow quiet override for specific commands

* output cleanup

* check flow

* start of tests

* file categorizer tests and fixes

* fixes and cleanup

* skipable not implemented...

* more tests, fix bugs

* more tests and cleanup

* wrong command

* fix canCheck and set env properly

* full env fix

* don't allow dusk on user's run as it will erase their db.

* fix os option

* fix whitespace

* don't need to start server

* ci doesn't like that
2020-05-22 20:27:48 -05:00

46 lines
1.1 KiB
YAML

sudo: required
language: php
addons:
chrome: stable
services:
- mysql
env:
global:
APP_ENV=testing
matrix:
fast_finish: true
include:
- php: 7.4
env: SKIP_STYLE_CHECK=1 SKIP_WEB_CHECK=1
- php: 7.3
env: SKIP_UNIT_CHECK=1
- php: 7.2
env: SKIP_STYLE_CHECK=1 SKIP_WEB_CHECK=1 EXECUTE_BUILD_DOCS=true
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 python3-setuptools
- mysql -e 'CREATE DATABASE librenms_phpunit_78hunjuybybh CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
- cp tests/config/config.test.php config.php
install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- pip3 install --user snmpsim PyMySQL pylint
- test -n "$SKIP_WEB_CHECK" || php artisan dusk:update --detect
after_failure:
- tail /tmp/snmpsimd.log
before_script:
- phpenv config-rm xdebug.ini
- test -n "$SKIP_WEB_CHECK" || php artisan serve --env=dusk.testing 2>/dev/null &
script:
- php artisan dev:check ci