db connection for tests

This commit is contained in:
Tony Murray 2020-06-22 14:20:05 -05:00
parent 941849a779
commit 979353201a
2 changed files with 7 additions and 0 deletions

6
.env.travis Normal file
View File

@ -0,0 +1,6 @@
APP_KEY=base64:vHI+YHgkyCDad31iPEErGSNEOWO21wNzV+zyENKQv04=
DB_HOST=127.0.0.1
DB_DATABASE=librenms_phpunit_78hunjuybybh
DB_USERNAME=root
DB_PASSWORD=

View File

@ -27,6 +27,7 @@ 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