| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file | 3 # found in the LICENSE file |
| 4 | 4 |
| 5 """Entry point for the AddIn build bot. | 5 """Entry point for the AddIn build bot. |
| 6 | 6 |
| 7 Perform build steps and output results using the buildbot | 7 Perform build steps and output results using the buildbot |
| 8 annootator syntax | 8 annootator syntax |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 def _GetGsutil(): | 57 def _GetGsutil(): |
| 58 if os.environ.get('BUILDBOT_BUILDERNAME'): | 58 if os.environ.get('BUILDBOT_BUILDERNAME'): |
| 59 # When running in a buildbot slave use | 59 # When running in a buildbot slave use |
| 60 # gsutil from the slave scripts folder | 60 # gsutil from the slave scripts folder |
| 61 import slave | 61 import slave |
| 62 slave_dir = os.path.dirname(slave.__file__) | 62 slave_dir = os.path.dirname(slave.__file__) |
| 63 gsutil = os.path.join(slave_dir, 'gsutil') | 63 gsutil = os.path.join(slave_dir, 'gsutil') |
| 64 if os.name == 'nt': | 64 if os.name == 'nt': |
| 65 gsutil += '.bat' | 65 gsutil += '.bat' |
| 66 gsutil = [gsutil] |
| 66 else: | 67 else: |
| 67 if os.name == 'nt': | 68 if os.name == 'nt': |
| 68 gsutil = [sys.executable, _FindInPath('gsutil')] | 69 gsutil = [sys.executable, _FindInPath('gsutil')] |
| 69 else: | 70 else: |
| 70 gsutil = ['gsutil'] | 71 gsutil = ['gsutil'] |
| 71 | 72 |
| 72 return gsutil | 73 return gsutil |
| 73 | 74 |
| 74 | 75 |
| 75 def StepArchive(): | 76 def StepArchive(): |
| (...skipping 16 matching lines...) Expand all Loading... |
| 92 | 93 |
| 93 | 94 |
| 94 def main(): | 95 def main(): |
| 95 StepBuild() | 96 StepBuild() |
| 96 StepTest() | 97 StepTest() |
| 97 StepArchive() | 98 StepArchive() |
| 98 | 99 |
| 99 | 100 |
| 100 if __name__ == '__main__': | 101 if __name__ == '__main__': |
| 101 main() | 102 main() |
| OLD | NEW |