Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit f58d0a7

Browse files
committed
Worker now attempts to build docs as well
1 parent 4d68f4c commit f58d0a7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

worker.py

+18
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import hmac
88
import cPickle
99
import time
10+
import subprocess
1011

1112
this_plat = builder.this_plat
1213

@@ -137,6 +138,23 @@ def build(worker, job):
137138

138139
b.build(phase="py2exe")
139140
worker.send_job_status(job, 6, 8)
141+
142+
# build docs
143+
doc_src="docs"
144+
doc_dest="dist\\docs"
145+
cmd = [b.python, r"c:\devel\Sphinx-1.0.8\sphinx-build.py", "-b", "html", doc_src, doc_dest]
146+
print "building docs with %r" % cmd
147+
print "cwd: %r" % os.getcwd()
148+
p = subprocess.Popen(cmd)
149+
p.wait()
150+
if (p.returncode != 0):
151+
print "Failed to build docs"
152+
raise Exception("Failed to build docs")
153+
else:
154+
print "docs OK"
155+
156+
157+
140158
except:
141159
print "something failed"
142160
result['status'] = 'ERROR'

0 commit comments

Comments
 (0)