mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 15:13:59 -06:00
Changed condition to determine if tests are run in CI
This commit is contained in:
parent
77deb9c111
commit
5040f5b177
@ -36,7 +36,7 @@ if ($isApiTest) {
|
|||||||
|
|
||||||
$buildDbConnection = function (): array {
|
$buildDbConnection = function (): array {
|
||||||
$driver = env('DB_DRIVER', 'sqlite');
|
$driver = env('DB_DRIVER', 'sqlite');
|
||||||
$isCi = env('TRAVIS', false);
|
$isCi = env('CI', false);
|
||||||
$getMysqlHost = fn (string $driver) => sprintf('shlink_db%s', $driver === 'mysql' ? '' : '_maria');
|
$getMysqlHost = fn (string $driver) => sprintf('shlink_db%s', $driver === 'mysql' ? '' : '_maria');
|
||||||
$getCiMysqlPort = fn (string $driver) => $driver === 'mysql' ? '3307' : '3308';
|
$getCiMysqlPort = fn (string $driver) => $driver === 'mysql' ? '3307' : '3308';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user