remove docgen from the sdk
BUG= R=whesse@google.com Review URL: https://codereview.chromium.org//1356943002 .
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ bin/ Binaries/scripts to compile, run, and manage Dart applications.
|
||||
dart Dart virtual machine
|
||||
dart2js Dart-to-JavaScript compiler
|
||||
dartanalyzer Dart static analyzer
|
||||
docgen Dart documentation generator
|
||||
dartdoc Dart documentation generator
|
||||
pub Pub, the Dart package manager
|
||||
dartfmt Dart code formatter
|
||||
|
||||
|
||||
@@ -93,13 +93,6 @@
|
||||
'packages',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'api_docs',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'utils/apidoc/docgen.gyp:dartdocgen',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'samples',
|
||||
'type': 'none',
|
||||
|
||||
@@ -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()
|
||||
|
||||
+2
-2
@@ -120,8 +120,8 @@ def CopyShellScript(src_file, dest_dir):
|
||||
|
||||
|
||||
def CopyDartScripts(home, sdk_root):
|
||||
for executable in ['dart2js_sdk', 'dartanalyzer_sdk', 'dartfmt_sdk', 'docgen',
|
||||
'dartdocgen', 'pub_sdk', 'dartdoc']:
|
||||
for executable in ['dart2js_sdk', 'dartanalyzer_sdk', 'dartfmt_sdk',
|
||||
'pub_sdk', 'dartdoc']:
|
||||
CopyShellScript(os.path.join(home, 'sdk', 'bin', executable),
|
||||
os.path.join(sdk_root, 'bin'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user