From b25b42ae2cb064b43c63b38df958d2e850878e14 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 15 Sep 2011 16:36:09 +0000 Subject: [PATCH] fail if api docs are missing from solr (this bit us in 3.4.0) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1171167 13f79535-47bb-0310-9956-ffa450edef68 --- dev-tools/scripts/smokeTestRelease.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py index ff2a10afd34..3ee71a44b07 100644 --- a/dev-tools/scripts/smokeTestRelease.py +++ b/dev-tools/scripts/smokeTestRelease.py @@ -338,6 +338,12 @@ def verifyUnpacked(project, artifact, unpackPath, version): raise RuntimeError('%s: file "%s" is missing from artifact %s' % (project, fileName, artifact)) l.remove(fileName) + if project == 'solr': + # Make sure the api jdocs are there (this was missing in 3.4.0): + for path in ('docs', 'docs/api', 'docs/api/solrj', 'docs/api/test-framework'): + if not os.path.exists('%s/index.html' % path): + raise RuntimeError('cannot find api javadocs for "%s"' % path) + if project == 'lucene': extras = ('lib', 'docs', 'contrib') if isSrc: