Commit 6f34b90a authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add a local base-build command

parent faa90c91
Pipeline #32362 passed with stage
in 7 minutes and 8 seconds
......@@ -41,7 +41,8 @@ def set_up_environment_variables(
os.environ["CI_PROJECT_DIR"] = project_dir
os.environ["CI_PROJECT_NAMESPACE"] = name_space
os.environ["CI_PROJECT_VISIBILITY"] = project_visibility
os.environ["PYTHON_VERSION"] = python
if python:
os.environ["PYTHON_VERSION"] = python
......@@ -136,10 +137,10 @@ Examples:
"printing to help you understand what will be done",
default=os.path.join(os.path.realpath(os.curdir), 'conda'),
help="Custom recipe folder for build."
default=os.path.join(os.path.realpath(os.curdir), "conda"),
help="Custom recipe folder for build.",
......@@ -164,3 +165,52 @@ def build(ctx, dry_run, recipe_dir, python, group):
set_up_environment_variables(python=python, name_space=group)
ctx.invoke(, dry_run=dry_run, recipe_dir=recipe_dir)
1. Runs the CI build steps locally:
$ bdt local base-build -vv nopython.txt
type=click.Path(file_okay=True, dir_okay=False, exists=True),
help="Only goes through the actions, but does not execute them "
"(combine with the verbosity flags - e.g. ``-vvv``) to enable "
"printing to help you understand what will be done",
help='Versions of python in the format "x.y" we should build for. Pass '
"various times this option to build for multiple python versions",
help="Group of packages (gitlab namespace) this package belongs to",
def base_build(ctx, order, dry_run, python, group):
"""Run the CI build step locally
set_up_environment_variables(python=python, name_space=group)
ctx.invoke(ci.base_build, order=order, dry_run=dry_run, group=group, python=python)
......@@ -83,6 +83,7 @@ setup(
'bdt.local.cli': [
'docs = bob.devtools.scripts.local:docs',
'build = bob.devtools.scripts.local:build',
'base-build = bob.devtools.scripts.local:base_build',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment