You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/10 09:48:48 UTC

[lucene] 18/19: LUCENE-7793: smokeTestRelease.py should run documentation-lint

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch branch_6_2
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 7cbd99b4d843b708eab7d02a277a1e230bb0e5bc
Author: Steve Rowe <sa...@apache.org>
AuthorDate: Fri Apr 28 09:58:02 2017 -0400

    LUCENE-7793: smokeTestRelease.py should run documentation-lint
---
 dev-tools/scripts/smokeTestRelease.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 83746de..6282226 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)