OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 6 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 # Use of this source code is governed by a BSD-style license that can be | 7 # Use of this source code is governed by a BSD-style license that can be |
8 # found in the LICENSE file. | 8 # found in the LICENSE file. |
9 | 9 |
10 """Dart client buildbot steps | 10 """Dart client buildbot steps |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir))) | 72 os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir))) |
73 | 73 |
74 if GetShouldClobber(): | 74 if GetShouldClobber(): |
75 print '@@@BUILD_STEP Clobber@@@' | 75 print '@@@BUILD_STEP Clobber@@@' |
76 status = ClobberBuilder() | 76 status = ClobberBuilder() |
77 if status != 0: | 77 if status != 0: |
78 print '@@@STEP_FAILURE@@@' | 78 print '@@@STEP_FAILURE@@@' |
79 return status | 79 return status |
80 | 80 |
81 name = GetName() | 81 name = GetName() |
82 if name.startswith('pub-'): | 82 if name.startswith('pkg-'): |
| 83 status = ProcessBot(name, 'pkg') |
| 84 elif name.startswith('pub-'): |
83 status = ProcessBot(name, 'pub') | 85 status = ProcessBot(name, 'pub') |
84 elif name.startswith('vm-android'): | 86 elif name.startswith('vm-android'): |
85 status = ProcessBot(name, 'android') | 87 status = ProcessBot(name, 'android') |
86 elif name.startswith('dart-sdk'): | 88 elif name.startswith('dart-sdk'): |
87 status = ProcessBot(name, 'dart_sdk') | 89 status = ProcessBot(name, 'dart_sdk') |
88 elif name.startswith('cross') or name.startswith('target'): | 90 elif name.startswith('cross') or name.startswith('target'): |
89 status = ProcessBot(name, 'cross-vm') | 91 status = ProcessBot(name, 'cross-vm') |
90 elif name.startswith('linux-distribution-support'): | 92 elif name.startswith('linux-distribution-support'): |
91 status = ProcessBot(name, 'linux_distribution_support') | 93 status = ProcessBot(name, 'linux_distribution_support') |
92 elif name.startswith('version-checker'): | 94 elif name.startswith('version-checker'): |
93 status = ProcessBot(name, 'version_checker') | 95 status = ProcessBot(name, 'version_checker') |
94 elif name.startswith('dart2js-dump-info'): | 96 elif name.startswith('dart2js-dump-info'): |
95 status = ProcessBot(name, 'dart2js_dump_info') | 97 status = ProcessBot(name, 'dart2js_dump_info') |
96 else: | 98 else: |
97 status = ProcessBot(name, 'compiler') | 99 status = ProcessBot(name, 'compiler') |
98 | 100 |
99 if status: | 101 if status: |
100 print '@@@STEP_FAILURE@@@' | 102 print '@@@STEP_FAILURE@@@' |
101 | 103 |
102 return status | 104 return status |
103 | 105 |
104 | 106 |
105 if __name__ == '__main__': | 107 if __name__ == '__main__': |
106 sys.exit(main()) | 108 sys.exit(main()) |
OLD | NEW |