Skip to content

Commit

Permalink
Merge pull request #14 from captainhookphp/dontInstallCaptainOnCI
Browse files Browse the repository at this point in the history
Do not install the captain in CI
  • Loading branch information
sebastianfeldmann committed Mar 5, 2021
2 parents 7c0c809 + 6bf99de commit 835cb66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ComposerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ public function installHooks(Event $event): void
$this->io->write(' <comment>plugin is disabled</comment>');
return;
}

if (getenv('CI') === 'true') {
$this->io->write(' <comment>disabling plugin due to CI-environment</comment>');
return;
}

$this->detectConfiguration();
$this->detectGitDir();
Expand Down

0 comments on commit 835cb66

Please sign in to comment.