Commit bb54faba authored by Jürgen Haas's avatar Jürgen Haas

Turn off PHP xdebug in CI context

parent fadb4e1f
......@@ -27,6 +27,7 @@
"ext-json": "*",
"php": ">=5.6",
"composer-plugin-api": "^1.0.0",
"lakedrops/composer-json-utils": "^1.2.0",
"lakedrops/composer-scripts": "^1.1.0",
"lakedrops/docker-traefik": "^1.1.0",
"lakedrops/dotenv": "^1.0.0",
......
......@@ -242,7 +242,7 @@ class Handler extends BaseHandler {
],
'php' => [
'version' => '7.0',
'xdebug' => 1,
'xdebug' => $this->isCiContext() ? 0 : 1,
],
'webserver' => [
'type' => 'apache',
......@@ -288,12 +288,11 @@ class Handler extends BaseHandler {
],
], $extra['docker4drupal']);
$projectRoot = getenv('CI_PROJECT_DIR');
if (empty($projectRoot)) {
$projectRoot = getcwd();
if ($this->isCiContext()) {
$projectRoot = $this->getDockerMountSource(getenv('CI_PROJECT_DIR'));
}
else {
$projectRoot = $this->getDockerMountSource($projectRoot);
$projectRoot = getcwd();
}
$options['projectroot'] = $projectRoot;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment