mirror of https://github.com/apache/lucene.git
test javadocs in smoketester
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1204550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4656dfdb1e
commit
baa92a6330
|
@ -27,6 +27,15 @@
|
|||
</subant>
|
||||
</sequential>
|
||||
</target>
|
||||
<target name="javadocs" description="Generate Lucene and Solr javadocs">
|
||||
<sequential>
|
||||
<subant target="javadocs" inheritall="false" failonerror="true">
|
||||
<fileset dir="lucene" includes="build.xml" />
|
||||
<fileset dir="modules" includes="build.xml" />
|
||||
<fileset dir="solr" includes="build.xml" />
|
||||
</subant>
|
||||
</sequential>
|
||||
</target>
|
||||
<target name="validate" description="Validate dependencies, licenses, etc.">
|
||||
<sequential><subant target="validate" inheritall="false" failonerror="true">
|
||||
<fileset dir="lucene" includes="build.xml" />
|
||||
|
|
|
@ -381,11 +381,41 @@ def verifyUnpacked(project, artifact, unpackPath, version):
|
|||
run('export JAVA_HOME=%s; ant test' % JAVA5_HOME, '%s/test.log' % unpackPath)
|
||||
run('export JAVA_HOME=%s; ant jar' % JAVA5_HOME, '%s/compile.log' % unpackPath)
|
||||
testDemo(isSrc, version)
|
||||
# test javadocs
|
||||
print ' generate javadocs w/ Java 5...'
|
||||
run('export JAVA_HOME=%s; ant javadocs' % JAVA5_HOME, '%s/javadocs.log' % unpackPath)
|
||||
else:
|
||||
print ' run tests w/ Java 6...'
|
||||
run('export JAVA_HOME=%s; ant test' % JAVA6_HOME, '%s/test.log' % unpackPath)
|
||||
|
||||
# test javadocs
|
||||
print ' generate javadocs w/ Java 6...'
|
||||
# uncomment this after 3.5.0 and delete the hack below
|
||||
# run('export JAVA_HOME=%s; ant javadocs' % JAVA6_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir('lucene')
|
||||
run('export JAVA_HOME=%s; ant javadocs' % JAVA6_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir(unpackPath)
|
||||
|
||||
os.chdir('solr')
|
||||
run('export JAVA_HOME=%s; ant javadocs' % JAVA6_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir(unpackPath)
|
||||
# end hackidy-hack
|
||||
|
||||
print ' run tests w/ Java 7...'
|
||||
run('export JAVA_HOME=%s; ant test' % JAVA7_HOME, '%s/test.log' % unpackPath)
|
||||
|
||||
# test javadocs
|
||||
print ' generate javadocs w/ Java 7...'
|
||||
# uncomment this after 3.5.0 and delete the hack below
|
||||
# run('export JAVA_HOME=%s; ant javadocs' % JAVA7_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir('lucene')
|
||||
run('export JAVA_HOME=%s; ant javadocs' % JAVA7_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir(unpackPath)
|
||||
|
||||
os.chdir('solr')
|
||||
run('export JAVA_HOME=%s; ant javadocs' % JAVA7_HOME, '%s/javadocs.log' % unpackPath)
|
||||
os.chdir(unpackPath)
|
||||
# end hackidy-hack
|
||||
else:
|
||||
if project == 'lucene':
|
||||
testDemo(isSrc, version)
|
||||
|
|
Loading…
Reference in New Issue