OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 """ | 7 """ |
8 Shared code for use in the buildbot scripts. | 8 Shared code for use in the buildbot scripts. |
9 """ | 9 """ |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 - system: 'linux', 'mac', or 'win7'. | 31 - system: 'linux', 'mac', or 'win7'. |
32 - checked: True if we should run in checked mode, otherwise False. | 32 - checked: True if we should run in checked mode, otherwise False. |
33 - host_checked: True if we should run in host checked mode, otherwise False. | 33 - host_checked: True if we should run in host checked mode, otherwise False. |
34 - minified: True if we should minify the code, otherwise False | 34 - minified: True if we should minify the code, otherwise False |
35 - shard_index: The shard we are running, None when not specified. | 35 - shard_index: The shard we are running, None when not specified. |
36 - total_shards: The total number of shards, None when not specified. | 36 - total_shards: The total number of shards, None when not specified. |
37 - is_buildbot: True if we are on a buildbot (or emulating it). | 37 - is_buildbot: True if we are on a buildbot (or emulating it). |
38 - test_set: Specification of a non standard test set or None. | 38 - test_set: Specification of a non standard test set or None. |
39 - csp: This is using csp when running | 39 - csp: This is using csp when running |
40 - arch: The architecture to build on. | 40 - arch: The architecture to build on. |
| 41 - dart2js_full: Boolean indicating whether this builder will run dart2js |
| 42 on several different runtimes. |
41 """ | 43 """ |
42 def __init__(self, compiler, runtime, mode, system, checked=False, | 44 def __init__(self, compiler, runtime, mode, system, checked=False, |
43 host_checked=False, minified=False, shard_index=None, | 45 host_checked=False, minified=False, shard_index=None, |
44 total_shards=None, is_buildbot=False, test_set=None, | 46 total_shards=None, is_buildbot=False, test_set=None, |
45 csp=None, arch=None): | 47 csp=None, arch=None, dart2js_full=False): |
46 self.compiler = compiler | 48 self.compiler = compiler |
47 self.runtime = runtime | 49 self.runtime = runtime |
48 self.mode = mode | 50 self.mode = mode |
49 self.system = system | 51 self.system = system |
50 self.checked = checked | 52 self.checked = checked |
51 self.host_checked = host_checked | 53 self.host_checked = host_checked |
52 self.minified = minified | 54 self.minified = minified |
53 self.shard_index = shard_index | 55 self.shard_index = shard_index |
54 self.total_shards = total_shards | 56 self.total_shards = total_shards |
55 self.is_buildbot = is_buildbot | 57 self.is_buildbot = is_buildbot |
56 self.test_set = test_set | 58 self.test_set = test_set |
57 self.csp = csp | 59 self.csp = csp |
| 60 self.dart2js_full = dart2js_full |
58 if (arch == None): | 61 if (arch == None): |
59 self.arch = 'ia32' | 62 self.arch = 'ia32' |
60 else: | 63 else: |
61 self.arch = arch | 64 self.arch = arch |
62 | 65 |
63 def PrintBuildInfo(self): | 66 def PrintBuildInfo(self): |
64 shard_description = "" | 67 shard_description = "" |
65 if self.shard_index: | 68 if self.shard_index: |
66 shard_description = " shard %s of %s" % (self.shard_index, | 69 shard_description = " shard %s of %s" % (self.shard_index, |
67 self.total_shards) | 70 self.total_shards) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 if exit_code != 0: | 244 if exit_code != 0: |
242 raise OSError(exit_code) | 245 raise OSError(exit_code) |
243 | 246 |
244 | 247 |
245 def GetStepName(name, flags): | 248 def GetStepName(name, flags): |
246 """ | 249 """ |
247 Filters out flags with '=' as this breaks the /stats feature of the buildbot. | 250 Filters out flags with '=' as this breaks the /stats feature of the buildbot. |
248 """ | 251 """ |
249 flags = [x for x in flags if not '=' in x] | 252 flags = [x for x in flags if not '=' in x] |
250 return ('%s tests %s' % (name, ' '.join(flags))).strip() | 253 return ('%s tests %s' % (name, ' '.join(flags))).strip() |
OLD | NEW |