rm -rf "$CUSTOM_TOOLCHAIN_PATH"
.setup_tools: &setup_tools |
- tools/idf_tools.py install &&
- eval "$(tools/idf_tools.py export)"
+ tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1
before_script:
- source tools/ci/setup_python.sh
global_quiet = False
+global_non_interactive = False
global_idf_path = None
global_idf_tools_path = None
global_tools_json = None
for retry in range(DOWNLOAD_RETRY_COUNT):
local_temp_path = local_path + '.tmp'
info('Downloading {} to {}'.format(archive_name, local_temp_path))
- urlretrieve(url, local_temp_path, report_progress)
+ urlretrieve(url, local_temp_path, report_progress if not global_non_interactive else None)
sys.stdout.write("\rDone\n")
sys.stdout.flush()
if not self.check_download_file(download_obj, local_temp_path):
parser = argparse.ArgumentParser()
parser.add_argument('--quiet', help='Don\'t output diagnostic messages to stdout/stderr', action='store_true')
+ parser.add_argument('--non-interactive', help='Don\'t output interactive messages and questions', action='store_true')
parser.add_argument('--tools-json', help='Path to the tools.json file to use')
parser.add_argument('--idf-path', help='ESP-IDF path to use')
global global_quiet
global_quiet = True
+ if args.non_interactive:
+ global global_non_interactive
+ global_non_interactive = True
+
global global_idf_path
global_idf_path = os.environ.get('IDF_PATH')
if args.idf_path: