diff --git a/settings/codestudio.settings.php b/settings/codestudio.settings.php new file mode 100644 index 000000000..21bcc2943 --- /dev/null +++ b/settings/codestudio.settings.php @@ -0,0 +1,8 @@ + 'drupal', - 'username' => 'root', - 'password' => 'root', - 'host' => '127.0.0.1', - 'port' => '3306', - 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', - 'driver' => 'mysql', - 'prefix' => '', -]; +$databases['default']['default']['username'] = 'root'; +$databases['default']['default']['password'] = 'root'; diff --git a/src/Robo/Common/EnvironmentDetector.php b/src/Robo/Common/EnvironmentDetector.php index 4cf2816b2..e75f42f77 100644 --- a/src/Robo/Common/EnvironmentDetector.php +++ b/src/Robo/Common/EnvironmentDetector.php @@ -27,7 +27,15 @@ public static function getCiEnv() { return current($results); } - return isset($_ENV['PIPELINE_ENV']) ? 'pipelines' : FALSE; + if (isset($_ENV['PIPELINE_ENV'])) { + return 'pipelines'; + } + + if (isset($_ENV['GITLAB_CI_TOKEN'])) { + return 'codestudio'; + } + + return FALSE; } /**