You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/04/28 14:09:05 UTC

[03/10] lucene-solr:branch_6_5: LUCENE-7793: smokeTestRelease.py should run documentation-lint

LUCENE-7793: smokeTestRelease.py should run documentation-lint


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2cf5b344
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2cf5b344
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2cf5b344

Branch: refs/heads/branch_6_5
Commit: 2cf5b3442530e845fc5e0d554788173f61af746e
Parents: 88fdc91
Author: Steve Rowe <sa...@apache.org>
Authored: Fri Apr 28 09:58:02 2017 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Fri Apr 28 09:58:56 2017 -0400

----------------------------------------------------------------------
 dev-tools/scripts/smokeTestRelease.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2cf5b344/dev-tools/scripts/smokeTestRelease.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index f6edc3e..c654654 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -708,8 +708,10 @@ def verifyUnpacked(java, project, artifact, unpackPath, gitRevision, version, te
         print('      %s' % line.strip())
       raise RuntimeError('source release has WARs...')
 
-    print('    run "ant validate"')
-    java.run_java8('ant validate', '%s/validate.log' % unpackPath)
+    # Can't run documentation-lint in lucene src, because dev-tools is missing
+    validateCmd = 'ant validate' if project == 'lucene' else 'ant validate documentation-lint';
+    print('    run "%s"' % validateCmd)
+    java.run_java8(validateCmd, '%s/validate.log' % unpackPath)
 
     if project == 'lucene':
       print("    run tests w/ Java 8 and testArgs='%s'..." % testArgs)