Skip to content

Commit

Permalink
Allow to specify endpoint in arguments (#290)
Browse files Browse the repository at this point in the history
* Allow to specify endpoint in arguments

* use new helper

Co-authored-by: Dariusz Ruminski <dariusz.ruminski@gmail.com>
  • Loading branch information
dshemin and keradus committed Sep 24, 2020
1 parent 45c64e2 commit 1c7f906
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/Bundle/CoverallsBundle/Command/CoverallsJobsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ protected function configure()
'Coveralls output json file',
[]
)
->addOption(
'entry_point',
null,
InputOption::VALUE_REQUIRED,
'Coveralls entrypoint',
'https://coveralls.io'
)
->addOption(
'root_dir',
'-r',
Expand Down
3 changes: 2 additions & 1 deletion src/Bundle/CoverallsBundle/Config/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ protected function createConfiguration(array $options, $rootDir, InputInterface

$coverage_clover = $this->getPotentiallyOverriddenOptionValue('coverage_clover', $options, $input);
$json_path = $this->getPotentiallyOverriddenOptionValue('json_path', $options, $input);
$entry_point = $this->getPotentiallyOverriddenOptionValue('entry_point', $options, $input);

return $configuration
->setEntrypoint($options['entry_point'])
->setEntrypoint($entry_point)
->setRepoToken($repoToken !== null ? $repoToken : $repoSecretToken)
->setServiceName($options['service_name'])
->setRootDir($rootDir)
Expand Down

0 comments on commit 1c7f906

Please sign in to comment.