Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: tools/bots/dart_sdk.py

Issue 1321513002: update to dartdoc 0.6.1 (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import os.path 7 import os.path
8 import shutil 8 import shutil
9 import sys 9 import sys
10 import subprocess 10 import subprocess
(...skipping 29 matching lines...) Expand all
40 'third_party', 'pkg' , 'dartdoc' , 'bin' , 40 'third_party', 'pkg' , 'dartdoc' , 'bin' ,
41 'dartdoc.dart') 41 'dartdoc.dart')
42 packages_dir = os.path.join(bot_utils.DART_DIR, 42 packages_dir = os.path.join(bot_utils.DART_DIR,
43 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), 43 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
44 'packages') 44 'packages')
45 footer_file = os.path.join(bot_utils.DART_DIR, 45 footer_file = os.path.join(bot_utils.DART_DIR,
46 'tools', 'bots', 'dartdoc_footer.html') 46 'tools', 'bots', 'dartdoc_footer.html')
47 with bot.BuildStep('Build API docs by dartdoc'): 47 with bot.BuildStep('Build API docs by dartdoc'):
48 subprocess.call([dart_exe, '--package-root=' + packages_dir, dartdoc_dart, 48 subprocess.call([dart_exe, '--package-root=' + packages_dir, dartdoc_dart,
49 '--sdk-docs','--output', dirname, '--dart-sdk', dart_sdk, 49 '--sdk-docs','--output', dirname, '--dart-sdk', dart_sdk,
50 '--footer' , footer_file, '--package-root=%s' % packages_dir ], 50 '--footer' , footer_file],
51 stdout=open(os.devnull, 'wb')) 51 stdout=open(os.devnull, 'wb'))
52 52
53 def CreateUploadVersionFile(): 53 def CreateUploadVersionFile():
54 file_path = os.path.join(bot_utils.DART_DIR, 54 file_path = os.path.join(bot_utils.DART_DIR,
55 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'), 55 utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
56 'VERSION') 56 'VERSION')
57 with open(file_path, 'w') as fd: 57 with open(file_path, 'w') as fd:
58 fd.write(utils.GetVersionFileContent()) 58 fd.write(utils.GetVersionFileContent())
59 DartArchiveUploadVersionFile(file_path) 59 DartArchiveUploadVersionFile(file_path)
60 60
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 if __name__ == '__main__': 250 if __name__ == '__main__':
251 # We always clobber the bot, to make sure releases are build from scratch 251 # We always clobber the bot, to make sure releases are build from scratch
252 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE 252 force = CHANNEL != bot_utils.Channel.BLEEDING_EDGE
253 bot.Clobber(force=force) 253 bot.Clobber(force=force)
254 254
255 CreateUploadSDK() 255 CreateUploadSDK()
256 if BUILD_OS == 'linux': 256 if BUILD_OS == 'linux':
257 CreateUploadVersionFile() 257 CreateUploadVersionFile()
258 CreateUploadAPIDocs() 258 CreateUploadAPIDocs()
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698