From 3bf5181f1e9b83f65ace0c203fdf47e26451a932 Mon Sep 17 00:00:00 2001 From: Michael Sarahan Date: Tue, 11 Sep 2018 13:46:55 -0500 Subject: [PATCH] add a CLI flag to allow erroring out when conda-verify fails a pkg --- conda_build/cli/main_build.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/conda_build/cli/main_build.py b/conda_build/cli/main_build.py index 9e84b88ab8..c5a27d96d1 100644 --- a/conda_build/cli/main_build.py +++ b/conda_build/cli/main_build.py @@ -204,8 +204,22 @@ def parse_args(args): p.add_argument( "--verify", action="store_true", + help="run verification on recipes or packages when building", + default=cc_conda_build.get('verify', 'true').lower() == 'true', + ) + p.add_argument( + "--no-verify", + action="store_false", + dest="verify", help="do not run verification on recipes or packages when building", - default=cc_conda_build.get('verify', 'false').lower() == 'true', + default=cc_conda_build.get('verify', 'true').lower() == 'true', + ) + p.add_argument( + "--strict-verify", + action="store_true", + dest="exit_on_verify_error", + help="Exit if any conda-verify check fail, instead of only printing them", + default=cc_conda_build.get('exit_on_verify_error', 'false').lower() == 'true', ) p.add_argument( "--output-folder",