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

Unified Diff: tools/bots/dart_sdk.py

Issue 1356943002: remove docgen from the sdk, and generating docs with docgen (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: add utils_wrapper snapshot 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart.gyp ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/dart_sdk.py
diff --git a/tools/bots/dart_sdk.py b/tools/bots/dart_sdk.py
index 3356940164412cd7aa30b9765f0f7a0b5466e2a2..a7980c1f1aec81c803b65d028e491cb37153e1d4 100644
--- a/tools/bots/dart_sdk.py
+++ b/tools/bots/dart_sdk.py
@@ -24,13 +24,6 @@ def BuildSDK():
Run([sys.executable, './tools/build.py', '--mode=release',
'--arch=ia32,x64', 'create_sdk'])
-def BuildAPIDocs():
- with bot.BuildStep('Build API docs'):
- Run([sys.executable, './tools/build.py', '--mode=release',
- '--arch=ia32', 'api_docs'])
- Run([sys.executable, './tools/build.py', '--mode=release',
- '--arch=ia32', 'dartdocgen'])
-
def BuildDartdocAPIDocs(dirname):
dart_sdk = os.path.join(bot_utils.DART_DIR,
utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
@@ -100,12 +93,6 @@ def CreateUploadSDK():
CreateUploadSDKZips()
def CreateUploadAPIDocs():
- api_path = os.path.join(bot_utils.DART_DIR,
- utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
- 'api_docs')
- api_zip = os.path.join(bot_utils.DART_DIR,
- utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
- 'dart-api-docs.zip')
dartdoc_dir = os.path.join(bot_utils.DART_DIR,
utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
'gen-dartdocs')
@@ -114,43 +101,12 @@ def CreateUploadAPIDocs():
'dartdocs-api.zip')
shutil.rmtree(api_path, ignore_errors=True)
FileDelete(api_zip)
- BuildAPIDocs()
- UploadApiDocs(api_path)
UploadApiLatestFile()
- CreateZip(api_path, api_zip)
- DartArchiveUploadAPIDocs(api_zip)
BuildDartdocAPIDocs(dartdoc_dir)
UploadDartdocApiDocs(dartdoc_dir)
CreateZip(dartdoc_dir, dartdoc_zip)
DartArchiveUploadDartdocAPIDocs(dartdoc_zip)
-def DartArchiveUploadAPIDocs(api_zip):
- namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
- revision = utils.GetArchiveVersion()
- for revision in [revision, 'latest']:
- destination = (namer.apidocs_directory(revision) + '/' +
- namer.apidocs_zipfilename())
- DartArchiveFile(api_zip, destination, checksum_files=False)
-
-def UploadApiDocs(dir_name):
- apidocs_namer = bot_utils.GCSNamerApiDocs(CHANNEL)
- revision = utils.GetArchiveVersion()
- apidocs_destination_gcsdir = apidocs_namer.docs_dirpath(revision)
- apidocs_destination_latestfile = apidocs_namer.docs_latestpath(revision)
-
- # Return early if the documents have already been uploaded.
- # (This can happen if a build was forced, or a commit had no changes in the
- # dart repository (e.g. DEPS file update).)
- if GsutilExists(apidocs_destination_gcsdir):
- print ("Not uploading api docs, since %s is already present."
- % apidocs_destination_gcsdir)
- return
-
- # Upload everything inside the built apidocs directory.
- gsutil = bot_utils.GSUtil()
- gsutil.upload(dir_name, apidocs_destination_gcsdir, recursive=True,
- public=True)
-
def DartArchiveUploadDartdocAPIDocs(api_zip):
namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
revision = utils.GetArchiveVersion()
« no previous file with comments | « dart.gyp ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698