diff --git a/src/Bundle/CoverallsBundle/Command/CoverallsJobsCommand.php b/src/Bundle/CoverallsBundle/Command/CoverallsJobsCommand.php index 2fe7a7d2..ba5323e7 100644 --- a/src/Bundle/CoverallsBundle/Command/CoverallsJobsCommand.php +++ b/src/Bundle/CoverallsBundle/Command/CoverallsJobsCommand.php @@ -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', diff --git a/src/Bundle/CoverallsBundle/Config/Configurator.php b/src/Bundle/CoverallsBundle/Config/Configurator.php index bc251a88..ee9718bf 100644 --- a/src/Bundle/CoverallsBundle/Config/Configurator.php +++ b/src/Bundle/CoverallsBundle/Config/Configurator.php @@ -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)