From 990dfde09e126bc4677f28ceeedfabba3b27e5b2 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 4 Mar 2019 08:53:30 +0100 Subject: [PATCH] [scripts][ci] Fix missing variable --- bob/devtools/scripts/ci.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py index f6cc0b33..54e153bc 100644 --- a/bob/devtools/scripts/ci.py +++ b/bob/devtools/scripts/ci.py @@ -125,7 +125,7 @@ def deploy(dry_run): name + '*.tar.bz2') deploy_packages = glob.glob(package_path) for k in deploy_packages: - deploy_conda_package(k, stable=stable, public=visible, + deploy_conda_package(k, stable=stable, public=public, username=os.environ['DOCUSER'], password=os.environ['DOCPASS'], overwrite=False, dry_run=dry_run) @@ -200,9 +200,9 @@ def pypi(package, dry_run): logger.warn('Nothing is being deployed to server') # determine project visibility - visible = (os.environ['CI_PROJECT_VISIBILITY'] == 'public') + public = (os.environ['CI_PROJECT_VISIBILITY'] == 'public') - if not visible: + if not public: raise RuntimeError('The repository %s is not public - a package ' \ 'deriving from it therefore, CANNOT be published to PyPI. ' \ 'You must follow the relevant software disclosure procedures ' \ -- GitLab