skip readme validation for EOL and EM tags

No artifacts will be published for these sorts of tags, so there is no
need to validate the README content.

Change-Id: I5ece4e38d0f0822751d8005c6ef176d84cd0009c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-07-20 12:08:49 -04:00 committed by Sean McGinnis
parent 6f7b2f2b9b
commit c7ec88dc90

View File

@ -700,6 +700,15 @@ def validate_pypi_readme(deliv, context):
gitutils.safe_clone_repo(
context.workdir, project.repo.name, project.hash, context)
if latest_release.is_eol:
print('skipping README validation for EOL tag {}'.format(
latest_release.version))
return
if latest_release.is_em:
print('skipping README validation for EM tag {}'.format(
latest_release.version))
return
for repo in deliv.repos:
job_templates = context.zuul_projects.get(repo.name, {}).get(