mirror of
https://github.com/flarum/framework.git
synced 2025-03-03 22:19:40 +08:00
Merge branch 'master' into fl/psr-15
This commit is contained in:
commit
fbf8a88de1
@ -1,9 +1,12 @@
|
|||||||
language: php
|
language: php
|
||||||
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB_USERNAME=travis
|
global:
|
||||||
services:
|
- DB=mariadb
|
||||||
- mysql
|
|
||||||
|
addons:
|
||||||
|
mariadb: '10.2'
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 7.1
|
- 7.1
|
||||||
@ -11,8 +14,20 @@ php:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- php: 7.1
|
||||||
|
addons: # to prevent mariadb
|
||||||
|
services: mysql
|
||||||
|
env:
|
||||||
|
- DB=mysql
|
||||||
|
- php: 7.2
|
||||||
|
addons: # to prevent mariadb
|
||||||
|
services: mysql
|
||||||
|
env:
|
||||||
|
- DB=mysql
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- mysql -e 'CREATE DATABASE flarum;'
|
- if [[ "$DB" == "mysql" || "$DB" == "mariadb" ]]; then mysql -e 'CREATE DATABASE flarum;'; fi
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update
|
- composer self-update
|
||||||
- composer install
|
- composer install
|
||||||
@ -26,5 +41,3 @@ notifications:
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
sudo: false
|
|
||||||
|
@ -19,4 +19,9 @@
|
|||||||
<exclude>./tests/Install</exclude>
|
<exclude>./tests/Install</exclude>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
<filter>
|
||||||
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||||
|
<directory suffix=".php">./src/</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
@ -75,9 +75,10 @@ trait CreatesForum
|
|||||||
$data->setSetting('mail_driver', 'log');
|
$data->setSetting('mail_driver', 'log');
|
||||||
|
|
||||||
$database = $data->getDatabaseConfiguration();
|
$database = $data->getDatabaseConfiguration();
|
||||||
$database['database'] = env('DB_DATABASE', 'flarum');
|
$database['host'] = env('DB_HOST', $database['host']);
|
||||||
$database['username'] = env('DB_USERNAME', 'root');
|
$database['database'] = env('DB_DATABASE', $database['database']);
|
||||||
$database['password'] = env('DB_PASSWORD', '');
|
$database['username'] = env('DB_USERNAME', $database['username']);
|
||||||
|
$database['password'] = env('DB_PASSWORD', $database['password']);
|
||||||
$data->setDatabaseConfiguration($database);
|
$data->setDatabaseConfiguration($database);
|
||||||
|
|
||||||
$this->configuration = $data;
|
$this->configuration = $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user