Skip to content
Snippets Groups Projects
Commit bb54faba authored by jurgenhaas's avatar jurgenhaas
Browse files

Turn off PHP xdebug in CI context

parent fadb4e1f
No related branches found
Tags v1.8.8
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment