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

Unified Diff: tools/bots/dart_sdk.py

Issue 1153033007: Add python based VERSION file generation for sdk bots (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix spelling Created 5 years, 7 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 | « no previous file | tools/utils.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 b2a3b06922580b8e50fdcae5aa4c8c0d1c34529b..cbaecd611eb1ea9f39a0b26f61fa4962978d7396 100644
--- a/tools/bots/dart_sdk.py
+++ b/tools/bots/dart_sdk.py
@@ -30,6 +30,21 @@ def BuildAPIDocs():
Run([sys.executable, './tools/build.py', '--mode=release',
'--arch=ia32', 'dartdocgen'])
+def CreateUploadVersionFile():
+ file_path = os.path.join(bot_utils.DART_DIR,
+ utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
+ 'VERSION')
+ with open(file_path, 'w') as fd:
+ fd.write(utils.GetVersionFileContent())
+ DartArchiveUploadVersionFile(file_path)
+
+def DartArchiveUploadVersionFile(version_file):
+ namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
+ revision = utils.GetSVNRevision()
+ for revision in [revision, 'latest']:
+ destination = namer.version_filepath(revision)
+ DartArchiveFile(version_file, destination, checksum_files=False)
+
def CreateUploadSDKZips():
with bot.BuildStep('Create and upload sdk zips'):
sdk32_path = os.path.join(bot_utils.DART_DIR,
@@ -174,4 +189,5 @@ def Run(command):
if __name__ == '__main__':
CreateUploadSDK()
if BUILD_OS == 'linux':
+ CreateUploadVersionFile()
CreateUploadAPIDocs()
« no previous file with comments | « no previous file | tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698