Skip to content

Commit

Permalink
Add CI setup to the install command
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpisa committed Feb 28, 2023
1 parent 3034abd commit 36f5efa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ class InstallCommand extends Command

public function handle(): void
{
if ($this->ask('Do you wish to setup CI?')) {
exec('composer require rockero-cz/ci');

$this->call('vendor:publish', ['--provider' => 'Rockero\\CI\\CIServiceProvider']);
}

$this->call('vendor:publish', ['--provider' => 'Rockero\\StarterKit\\StarterKitServiceProvider']);
}
}

0 comments on commit 36f5efa

Please sign in to comment.