Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rosdep_update_options #684

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ros_buildfarm/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ def add_argument_target_repository(parser):
help='The target repository where generated packages are pushed to')


def add_argument_custom_rosdep_update_options(parser):
parser.add_argument(
'--custom-rosdep-update-options',
nargs='*',
default=[],
help='A list of custom rosdep update options')


def add_argument_custom_rosdep_urls(parser):
parser.add_argument(
'--custom-rosdep-urls',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ USER buildfarm
ENTRYPOINT ["sh", "-c"]
@{
cmds = [
'rosdep update',
' '.join(['rosdep', 'update'] + rosdep_update_options),
]
workspace_root = '/tmp/ws'
if prerelease_overlay:
Expand Down
2 changes: 1 addition & 1 deletion ros_buildfarm/templates/doc/doc_create_task.Dockerfile.em
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ USER buildfarm
ENTRYPOINT ["sh", "-c"]
@{
cmds = [
'rosdep update',
' '.join(['rosdep', 'update'] + rosdep_update_options),

'PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u' + \
' /tmp/ros_buildfarm/scripts/doc/create_doc_task_generator.py' + \
Expand Down
3 changes: 3 additions & 0 deletions scripts/devel/run_devel_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ros_buildfarm.argument import add_argument_arch
from ros_buildfarm.argument import add_argument_build_name
from ros_buildfarm.argument import add_argument_build_tool
from ros_buildfarm.argument import add_argument_custom_rosdep_update_options
from ros_buildfarm.argument import add_argument_custom_rosdep_urls
from ros_buildfarm.argument import \
add_argument_distribution_repository_key_files
Expand Down Expand Up @@ -56,6 +57,7 @@ def main(argv=sys.argv[1:]):
action='store_true',
help='Operate on two catkin workspaces')
add_argument_build_tool(parser, required=True)
add_argument_custom_rosdep_update_options(parser)
add_argument_ros_version(parser)
add_argument_env_vars(parser)
add_argument_dockerfile_dir(parser)
Expand All @@ -68,6 +70,7 @@ def main(argv=sys.argv[1:]):
args.distribution_repository_urls,
args.distribution_repository_key_files),
'custom_rosdep_urls': args.custom_rosdep_urls,
'rosdep_update_options': args.custom_rosdep_update_options,
'uid': get_user_id(),
})
create_dockerfile(
Expand Down
3 changes: 3 additions & 0 deletions scripts/doc/run_doc_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from ros_buildfarm.argument import add_argument_build_name
from ros_buildfarm.argument import add_argument_build_tool
from ros_buildfarm.argument import add_argument_config_url
from ros_buildfarm.argument import add_argument_custom_rosdep_update_options
from ros_buildfarm.argument import add_argument_custom_rosdep_urls
from ros_buildfarm.argument import \
add_argument_distribution_repository_key_files
Expand Down Expand Up @@ -55,6 +56,7 @@ def main(argv=sys.argv[1:]):
add_argument_distribution_repository_urls(parser)
add_argument_distribution_repository_key_files(parser)
add_argument_custom_rosdep_urls(parser)
add_argument_custom_rosdep_update_options(parser)
add_argument_force(parser)
add_argument_dockerfile_dir(parser)
args = parser.parse_args(argv)
Expand All @@ -66,6 +68,7 @@ def main(argv=sys.argv[1:]):
args.distribution_repository_urls,
args.distribution_repository_key_files),
'custom_rosdep_urls': args.custom_rosdep_urls,
'rosdep_update_options': args.custom_rosdep_update_options,
'uid': get_user_id(),
})
create_dockerfile(
Expand Down
3 changes: 3 additions & 0 deletions scripts/prerelease/generate_prerelease_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from ros_buildfarm.argument import add_argument_build_name
from ros_buildfarm.argument import add_argument_build_tool
from ros_buildfarm.argument import add_argument_config_url
from ros_buildfarm.argument import add_argument_custom_rosdep_update_options
from ros_buildfarm.argument import add_argument_os_code_name
from ros_buildfarm.argument import add_argument_os_name
from ros_buildfarm.argument import add_argument_output_dir
Expand All @@ -53,6 +54,7 @@ def main(argv=sys.argv[1:]):
add_argument_os_code_name(parser)
add_argument_arch(parser)
add_argument_build_tool(parser)
add_argument_custom_rosdep_update_options(parser)
add_argument_output_dir(parser, required=True)

group = parser.add_argument_group(
Expand Down Expand Up @@ -275,6 +277,7 @@ def beforeInclude(self, *_, **kwargs):
'scms': scms,
'scripts': hook.scripts,
'overlay_scripts': overlay_scripts,
'rosdep_update_options': args.custom_rosdep_update_options,
'ros_buildfarm_python_path': os.path.dirname(
os.path.dirname(os.path.abspath(ros_buildfarm_file))),
'python_executable': sys.executable,
Expand Down