Changed condition to determine if tests are run in CI

This commit is contained in:
Alejandro Celaya 2020-12-13 11:07:37 +01:00
parent 77deb9c111
commit 5040f5b177

View file

@ -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';