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:04 UTC

[02/10] lucene-solr:branch_6x: 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/9f829d13
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9f829d13
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9f829d13

Branch: refs/heads/branch_6x
Commit: 9f829d134bdc8296fee02cca86d8f2416d1767bc
Parents: 189e50d
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:40 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/9f829d13/dev-tools/scripts/smokeTestRelease.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index ad965e4..9dff768 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -707,8 +707,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)