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

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

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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 | « tools/bots/fletch.py ('k') | tools/bots/sdk_dartino_patched.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file.
4
5 import bot_utils
6
7 class FletchGCSNamer(bot_utils.GCSNamer):
8 def __init__(self, channel=bot_utils.Channel.BLEEDING_EDGE,
9 release_type=bot_utils.ReleaseType.RAW, temporary=False):
10 super(FletchGCSNamer, self).__init__(channel, release_type, False)
11 if temporary:
12 self.bucket = 'gs://fletch-temporary'
13 else:
14 self.bucket = 'gs://fletch-archive'
15
16 def dartino_sdk_directory(self, revision):
17 return self._variant_directory('sdk', revision)
18
19 def dartino_sdk_zipfilename(self, system, arch, mode):
20 assert mode in bot_utils.Mode.ALL_MODES
21 return 'dartino-sdk-%s-%s-%s.zip' % (
22 bot_utils.SYSTEM_RENAMES[system], bot_utils.ARCH_RENAMES[arch], mode)
23
24 def dartino_sdk_zipfilepath(self, revision, system, arch, mode):
25 return '/'.join([self.dartino_sdk_directory(revision),
26 self.dartino_sdk_zipfilename(system, arch, mode)])
27
28 def cross_binaries_zipfilename(self, mode, arch):
29 assert mode in bot_utils.Mode.ALL_MODES
30 return '%s-binaries-%s.zip' % (arch, mode)
31
32 def cross_binaries_zipfilepath(self, revision, mode, arch):
33 return '/'.join([self.dartino_sdk_directory(revision),
34 self.cross_binaries_zipfilename(mode, arch)])
35
36 def arm_agent_filename(self, revision):
37 return 'dartino-agent_%s-1_armhf.deb' % revision
38
39 def src_tar_name(self, revision):
40 return 'dartino-%s.tar.gz' % revision
41
42 def arm_agent_filepath(self, revision):
43 return '/'.join([self.dartino_sdk_directory(revision),
44 self.arm_agent_filename(revision)])
45
46 def raspbian_filename(self):
47 return 'fletch_raspbian.img'
48
49 def raspbian_zipfilename(self):
50 return '%s.zip' % self.raspbian_filename()
51
52 def raspbian_zipfilepath(self, revision):
53 return '/'.join([self.dartino_sdk_directory(revision),
54 self.raspbian_zipfilename()])
55
56 def version_filepath(self, revision):
57 return '/'.join([self.dartino_sdk_directory(revision), 'VERSION'])
58
59 def gcc_embedded_bundle_zipfilename(self, system):
60 return 'gcc-arm-embedded-%s.zip' % system
61
62 def gcc_embedded_bundle_filepath(self, revision, system):
63 return '/'.join([self.dartino_sdk_directory(revision),
64 self.gcc_embedded_bundle_zipfilename(system)])
65
66 def openocd_bundle_zipfilename(self, system):
67 return 'openocd-%s.zip' % system
68
69 def openocd_bundle_filepath(self, revision, system):
70 return '/'.join([self.dartino_sdk_directory(revision),
71 self.openocd_bundle_zipfilename(system)])
72
73 def docs_filepath(self, revision):
74 return '/'.join([self.dartino_sdk_directory(revision), 'docs'])
OLDNEW
« no previous file with comments | « tools/bots/fletch.py ('k') | tools/bots/sdk_dartino_patched.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698