Specific fix considering that the CI is now Azure

This commit is contained in:
Adrien Ferrand 2020-07-01 00:51:14 +02:00
parent 119103d7bc
commit 5fecae8bc0
3 changed files with 7 additions and 7 deletions

View file

@ -73,9 +73,9 @@ ACME working area in github: https://github.com/ietf-wg-acme/acme
|build-status|
.. |build-status| image:: https://travis-ci.com/certbot/certbot.svg?branch=master
:target: https://travis-ci.com/certbot/certbot
:alt: Travis CI status
.. |build-status| image:: https://img.shields.io/azure-devops/build/certbot/ba534f81-a483-4b9b-9b4e-a60bec8fee72/2/master
:target: https://dev.azure.com/certbot/certbot/_build?definitionId=2
:alt: Azure Pipelines CI status
.. Do not modify this comment unless you know what you're doing. tag:links-end

View file

@ -59,9 +59,9 @@ def set_up():
command = set_up_command(config_dir, logs_dir, work_dir, nginx_dir)
dirs = [logs_dir, config_dir, work_dir]
# Travis and Circle CI set CI to true so we
# will always test Nginx's lock during CI
if os.environ.get('CI') == 'true' or util.exe_exists('nginx'):
# A specific environment variable for Azure Pipelines is SYSTEM_TEAMFOUNDATIONSERVERURI.
# If set, then we know we are on a CI job, and we test Nginx's lock.
if os.environ.get('SYSTEM_TEAMFOUNDATIONSERVERURI') == 'true' or util.exe_exists('nginx'):
dirs.append(nginx_dir)
else:
logger.warning('Skipping Nginx lock tests')

View file

@ -57,7 +57,7 @@ def validate_scripts_content(repo_path, temp_cwd):
'letsencrypt-auto-source/pieces/fetch.py')), temp_cwd)
# Compare file against current version in the target branch
branch = os.environ.get('TRAVIS_BRANCH', 'master')
branch = os.environ.get('BUILD_SOURCEBRANCHNAME', 'master')
url = (
'https://raw.githubusercontent.com/certbot/certbot/{0}/certbot-auto'
.format(branch))