Skip to content

Commit 835cb66

Browse files
Merge pull request #14 from captainhookphp/dontInstallCaptainOnCI
Do not install the captain in CI
2 parents 7c0c809 + 6bf99de commit 835cb66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ComposerPlugin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ public function installHooks(Event $event): void
137137
$this->io->write(' <comment>plugin is disabled</comment>');
138138
return;
139139
}
140+
141+
if (getenv('CI') === 'true') {
142+
$this->io->write(' <comment>disabling plugin due to CI-environment</comment>');
143+
return;
144+
}
140145

141146
$this->detectConfiguration();
142147
$this->detectGitDir();

0 commit comments

Comments
 (0)