[zorg] r279624 - Add builder for clang extra tools Sphinx docs
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 24 06:25:31 PDT 2016
Author: alexfh
Date: Wed Aug 24 08:25:31 2016
New Revision: 279624
URL: http://llvm.org/viewvc/llvm-project?rev=279624&view=rev
Log:
Add builder for clang extra tools Sphinx docs
Summary: Cargo-culted from clang docs builder. Should work, but I haven't tried.
Reviewers: gribozavr
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D23787
Modified:
zorg/trunk/buildbot/osuosl/master/config/builders.py
zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py
Modified: zorg/trunk/buildbot/osuosl/master/config/builders.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/buildbot/osuosl/master/config/builders.py?rev=279624&r1=279623&r2=279624&view=diff
==============================================================================
--- zorg/trunk/buildbot/osuosl/master/config/builders.py (original)
+++ zorg/trunk/buildbot/osuosl/master/config/builders.py Wed Aug 24 08:25:31 2016
@@ -1140,6 +1140,13 @@ def _get_documentation_builders():
'category' : 'clang'
},
{
+ 'name':"clang-tools-sphinx-docs",
+ 'slavenames':["gribozavr4"],
+ 'builddir':"clang-tools-sphinx-docs",
+ 'factory': SphinxDocsBuilder.getSphinxDocsBuildFactory(clang_tools_html=True),
+ 'category' : 'clang'
+ },
+ {
'name':"lld-sphinx-docs",
'slavenames':["gribozavr4"],
'builddir':"lld-sphinx-docs",
Modified: zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py?rev=279624&r1=279623&r2=279624&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py Wed Aug 24 08:25:31 2016
@@ -6,11 +6,12 @@ from buildbot.process.properties import
from zorg.buildbot.commands.NinjaCommand import NinjaCommand
def getSphinxDocsBuildFactory(
- llvm_html = False, # Build LLVM HTML documentation
- llvm_man = False, # Build LLVM man pages
- clang_html = False, # Build Clang HTML documentation
- lld_html = False, # Build LLD HTML documentation
- libcxx_html = False # Build Libc++ HTML documentation
+ llvm_html = False, # Build LLVM HTML documentation
+ llvm_man = False, # Build LLVM man pages
+ clang_html = False, # Build Clang HTML documentation
+ clang_tools_html = False, # Build Clang Extra Tools HTML documentation
+ lld_html = False, # Build LLD HTML documentation
+ libcxx_html = False # Build Libc++ HTML documentation
):
f = buildbot.process.factory.BuildFactory()
@@ -18,6 +19,7 @@ def getSphinxDocsBuildFactory(
llvm_srcdir = 'llvm/src'
llvm_objdir = 'llvm/build'
clang_srcdir = llvm_srcdir + '/tools/clang'
+ clang_tools_srcdir = llvm_srcdir + '/tools/clang/tools/extra'
lld_srcdir = llvm_srcdir + '/tools/lld'
libcxx_srcdir = llvm_srcdir + '/projects/libcxx'
libcxxabi_srcdir = llvm_srcdir + '/projects/libcxxabi'
@@ -37,6 +39,13 @@ def getSphinxDocsBuildFactory(
defaultBranch='trunk',
workdir=clang_srcdir))
+ if clang_tools_html:
+ f.addStep(SVN(name='svn-clang-tools',
+ mode='update',
+ baseURL='http://llvm.org/svn/llvm-project/clang-tools-extra/',
+ defaultBranch='trunk',
+ workdir=clang_tools_srcdir))
+
if lld_html:
f.addStep(SVN(name='svn-lld',
mode='update',
@@ -99,6 +108,14 @@ def getSphinxDocsBuildFactory(
targets=['docs-clang-html']
))
+ if clang_tools_html:
+ f.addStep(NinjaCommand(name="docs-clang-tools-html",
+ haltOnFailure=True,
+ description=["Build Clang Extra Tools Sphinx HTML documentation"],
+ workdir=llvm_objdir,
+ targets=['docs-clang-tools-html']
+ ))
+
if lld_html:
f.addStep(NinjaCommand(name="docs-lld-html",
haltOnFailure=True,
More information about the llvm-commits
mailing list