[zorg] r299003 - Add builder for libunwind docs
Jonathan Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 29 08:41:17 PDT 2017
Author: jroelofs
Date: Wed Mar 29 10:41:17 2017
New Revision: 299003
URL: http://llvm.org/viewvc/llvm-project?rev=299003&view=rev
Log:
Add builder for libunwind docs
https://reviews.llvm.org/D31422
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=299003&r1=299002&r2=299003&view=diff
==============================================================================
--- zorg/trunk/buildbot/osuosl/master/config/builders.py (original)
+++ zorg/trunk/buildbot/osuosl/master/config/builders.py Wed Mar 29 10:41:17 2017
@@ -1353,6 +1353,13 @@ def _get_documentation_builders():
'builddir':"libcxx-sphinx-docs",
'factory': SphinxDocsBuilder.getSphinxDocsBuildFactory(libcxx_html=True),
'category' : 'libcxx'
+ },
+ {
+ 'name':"libunwind-sphinx-docs",
+ 'slavenames':["gribozavr3"],
+ 'builddir':"libunwind-sphinx-docs",
+ 'factory': SphinxDocsBuilder.getSphinxDocsBuildFactory(libunwind_html=True),
+ 'category' : 'libunwind'
}
]
Modified: zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py?rev=299003&r1=299002&r2=299003&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/SphinxDocsBuilder.py Wed Mar 29 10:41:17 2017
@@ -11,7 +11,8 @@ def getSphinxDocsBuildFactory(
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
+ libcxx_html = False, # Build Libc++ HTML documentation
+ libunwind_html = False # Build libunwind HTML documentation
):
f = buildbot.process.factory.BuildFactory()
@@ -23,6 +24,7 @@ def getSphinxDocsBuildFactory(
lld_srcdir = llvm_srcdir + '/tools/lld'
libcxx_srcdir = llvm_srcdir + '/projects/libcxx'
libcxxabi_srcdir = llvm_srcdir + '/projects/libcxxabi'
+ libunwind_srcdir = llvm_srcdir + '/projects/libunwind'
# Get LLVM. This is essential for all builds
# because we build all subprojects in tree
@@ -65,6 +67,13 @@ def getSphinxDocsBuildFactory(
defaultBranch='trunk',
workdir=libcxxabi_srcdir))
+ if libunwind_html:
+ f.addStep(SVN(name='svn-libunwind',
+ mode='update',
+ baseURL='http://llvm.org/svn/llvm-project/libunwind/',
+ defaultBranch='trunk',
+ workdir=libunwind_srcdir))
+
f.addStep(ShellCommand(name="create-build-dir",
command=["mkdir", "-p", llvm_objdir],
haltOnFailure=False, # We might of already created the directory in a previous build
@@ -132,4 +141,12 @@ def getSphinxDocsBuildFactory(
targets=['docs-libcxx-html']
))
+ if libunwind_html:
+ f.addStep(NinjaCommand(name="docs-libunwind-html",
+ haltOnFailure=True,
+ description=["Build libunwind Sphinx HTML documentation"],
+ workdir=llvm_objdir,
+ targets=['docs-libunwind-html']
+ ))
+
return f
More information about the llvm-commits
mailing list