Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/bin/createNightlies.py

Issue 4710382128070656: Issue 2253 - Adapt nightlies for JsDoc 3 (Closed)
Patch Set: Created April 1, 2015, 10:21 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .sitescripts.example ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/bin/createNightlies.py
===================================================================
--- a/sitescripts/extensions/bin/createNightlies.py
+++ b/sitescripts/extensions/bin/createNightlies.py
@@ -365,16 +365,9 @@
if not self.config.type == 'gecko':
return
- docsdir = tempfile.mkdtemp(prefix='jsdoc')
- command = ['hg', 'archive', '-R', get_config().get('extensions', 'jsdocRepository'), '-r', 'default', docsdir]
- subprocess.check_call(command)
-
- try:
- import buildtools.build as build
- outputPath = os.path.join(self.config.docsDirectory, self.basename)
- build.generateDocs(self.tempdir, None, [("-t", docsdir), ("-q", "")], [outputPath], self.config.type)
- finally:
- shutil.rmtree(docsdir, ignore_errors=True)
+ import buildtools.build as build
+ outputPath = os.path.join(self.config.docsDirectory, self.basename)
+ build.generateDocs(self.tempdir, None, [('--quiet', '')], [outputPath], self.config.type)
def uploadToChromeWebStore(self):
# Google APIs use HTTP error codes with error message in body. So we add
« no previous file with comments | « .sitescripts.example ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld