Skip to content

Commit

Permalink
fix: Replace /home/circleci/app by /home/circleci/datadog under CI env
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Apr 29, 2024
1 parent 06025f6 commit 1b7a816
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/Integrations/Laravel/Octane/CommonScenariosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ public static function ddSetUpBeforeClass()
$iniFile = explode(',', $iniFiles)[0];
$iniDir = dirname($iniFile);
self::$iniPath = $iniDir . '/swoole.ini';
copy(__DIR__ . '/swoole.ini', self::$iniPath);

if (false !== getenv('CI') || false !== getenv('CIRCLECI')) {
copy(__DIR__ . '/swoole.ini', self::$iniPath);
} else {
$swooleIni = file_get_contents(__DIR__ . '/swoole.ini');
$swooleIni = str_replace('/home/circle/app', '/home/circleci/datadog', $swooleIni);
file_put_contents(self::$iniPath, $swooleIni);
}

parent::ddSetUpBeforeClass();
}

Expand Down

0 comments on commit 1b7a816

Please sign in to comment.