mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add migrations and seeds * Fix spacing validation issues * Fix linting * Update tabs to spaces * Update daily and install process * Make build-base.php use the new migrations if empty or at dbschema 1000. Seed 1000 into the database. Temp fix for the route table index length (this table basically isn't used...) * Fix typo in seed. Hard code legacy schema checks to version 1000 (999 would have worked as is) * Port association table no longer exists * Make database validate again * DB schema, remove as many DB::statement as possible * update migrations add librenms cli entry point (artisan) update validate to check laravel migrations * remove statements from users migration * Fix up daily.sh and the 1000 migration * Update migrations to current state Take advantage of environment variables to set DB credentials. * Fix style issues * Update schema * fix test db collation * Fix migration table definition * update db migrations * Update migrations * Update stats callback. Just count the total migrations applied. * Update 1000.sql. * update migrations * remove the graph type seeder, it is no longer needed * update docs * fix whitespace * remove extra schema * update tests * fix sort * add message * dbSchema should actually be 1000 * add character set to db create * Fix some artisan issues * Update schema
51 lines
1.2 KiB
YAML
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 CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
|
|
- 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
|