Skip to content

Commit

Permalink
Add ddev and lando.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed May 23, 2024
1 parent 64017fb commit 07540a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Helpers/TelemetryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public static function getEnvironmentProvider(): ?string {
$providers = self::getProviders();

// Check for an Acquia environment first as it uses a method call rather than getenv.
// Under the hood, this checks the AH_SITE_ENVIRONMENT environment variable. This is set by Cloud IDE and Lando.
if (AcquiaDrupalEnvironmentDetector::getAhEnv()) {
return 'acquia';
}
Expand Down Expand Up @@ -217,11 +218,13 @@ public static function getProviders(): array {
'buddy' => ['BUDDY_WORKSPACE_ID'],
'circleci' => ['CIRCLECI'],
'codebuild' => ['CODEBUILD_BUILD_ID'],
'ddev' => ['IS_DDEV_PROJECT'],
'drone' => ['DRONE'],
'github' => ['GITHUB_ACTIONS'],
'gitlab' => ['GITLAB_CI'],
'heroku' => ['HEROKU_TEST_RUN_ID'],
'jenkins' => ['JENKINS_URL'],
'lando' => ['LANDO'],
'pantheon' => ['PANTHEON_ENVIRONMENT'],
'pipelines' => ['PIPELINE_ENV'],
'platformsh' => ['PLATFORM_ENVIRONMENT'],
Expand Down

0 comments on commit 07540a7

Please sign in to comment.