diff --git a/.env.travis b/.env.travis index 499107fc..5b0d26b8 100644 --- a/.env.travis +++ b/.env.travis @@ -5,7 +5,7 @@ APP_LOG_LEVEL=debug APP_URL=http://localhost APP_SETTINGS_STORE=json -DB_CONNECTION=unittest +DB_CONNECTION=travis DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=phpvms diff --git a/config/database.php b/config/database.php index 2f9bf034..23429d99 100755 --- a/config/database.php +++ b/config/database.php @@ -33,6 +33,20 @@ return [ 'prefix' => '', ], + 'travis' => [ + 'driver' => 'mysql', + 'host' => env('DB_HOST'), + 'port' => env('DB_PORT'), + 'database' => env('DB_DATABASE'), + 'username' => env('DB_USERNAME'), + 'password' => env('DB_PASSWORD'), + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + 'strict' => true, + 'engine' => null, + ], + 'testing' => [ 'driver' => 'sqlite', 'database' => ':memory:',