diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py index 8e10099f2da46d27cc532da38cd4947c5fcd57db..7d35fc7eab9a463038135ad41b7d11b7bcb0faf9 100644 --- a/bob/devtools/scripts/ci.py +++ b/bob/devtools/scripts/ci.py @@ -250,6 +250,11 @@ def build(dry_run): set_environment('LC_ALL', os.environ['LANG'], os.environ, verbose=True) set_environment('MATPLOTLIBRC', MATPLOTLIB_RCDIR, verbose=True) + # get information about the version of the package being built + version, is_prerelease = check_version(workdir, + os.environ.get('CI_COMMIT_TAG')) + set_environment('BOB_PACKAGE_VERSION', version, verbose=True) + # setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension # and derived documentation building via Sphinx) set_environment('DOCSERVER', SERVER, os.environ, verbose=True) @@ -258,11 +263,6 @@ def build(dry_run): server=SERVER, intranet=True) set_environment('BOB_DOCUMENTATION_SERVER', doc_urls, verbose=True) - # get information about the version of the package being built - version, is_prerelease = check_version(workdir, - os.environ.get('CI_COMMIT_TAG')) - set_environment('BOB_PACKAGE_VERSION', version, verbose=True) - condarc = os.path.join(prefix, 'condarc') logger.info('Loading (this build\'s) CONDARC file from %s...', condarc) with open(condarc, 'rb') as f: