mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Shift HTTP kernel and middleware * Shift service providers * Shift console routes * Shift to class based factories * Namespace seeders * Shift PSR-4 autoloading * Default config files In an effort to make upgrading the constantly changing config files easier, Shift defaulted them. This allows you to review the commit diff for once for customizations when you are done Shifting. Moving forward, consider using ENV variables or create a separate config file to allow the core config files to remain as default as possible. * Shift Laravel dependencies * Shift return type of base TestCase methods From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type: - `setUpBeforeClass()` - `setUp()` - `assertPreConditions()` - `assertPostConditions()` - `tearDown()` - `tearDownAfterClass()` - `onNotSuccessfulTest()` [1]: https://phpunit.de/announcements/phpunit-8.html * Shift cleanup * console routes * composer update * factories * phpunit * bootstrap pagination * model factory * wip * Apply fixes from StyleCI (#12236) * wip * Apply fixes from StyleCI (#12238) * wip * wip * wip * wip * Apply fixes from StyleCI (#12240) * wip * Apply fixes from StyleCI (#12242) * composer update * Bump to PHP 7.3 minimum Co-authored-by: Laravel Shift <shift@laravelshift.com>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
os: linux
|
|
language: php
|
|
addons:
|
|
chrome: stable
|
|
services:
|
|
- mysql
|
|
env:
|
|
global:
|
|
APP_ENV=testing
|
|
jobs:
|
|
fast_finish: true
|
|
include:
|
|
- php: 7.4
|
|
dist: bionic
|
|
env: SKIP_STYLE_CHECK=1 SKIP_WEB_CHECK=1
|
|
- php: 7.3
|
|
dist: bionic
|
|
env: SKIP_UNIT_CHECK=1
|
|
- php: 7.3
|
|
dist: bionic
|
|
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 .env.travis .env
|
|
|
|
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
|
|
|
|
after_success:
|
|
- scripts/deploy-docs.sh
|
|
|
|
before_script:
|
|
- phpenv config-rm xdebug.ini
|
|
- test -n "$SKIP_WEB_CHECK" || php artisan serve --env=dusk.testing 2>/dev/null &
|
|
- test -n "$SKIP_UNIT_CHECK" || ~/.local/bin/snmpsimd.py --data-dir=tests/snmpsim --agent-udpv4-endpoint=127.1.6.2:1162 --logging-method=file:/tmp/snmpsimd.log &
|
|
|
|
script:
|
|
- php artisan dev:check ci
|