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

Side by Side Diff: scripts/slave/chromium/nacl_sdk_buildbot_run.py

Issue 2336833003: Remove redundant NaCl SDK buildbot run script
Patch Set: Created 4 years, 3 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 | « no previous file | scripts/slave/recipes/client.nacl.sdk.recipe_autogen.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 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Entry point for both build and try bots.
7
8 To determine which commands to run, the script inspects the given build
9 properties passed in from buildbot (via command line options).
10 """
11
12 import optparse
13 import os
14 import sys
15
16 from common import chromium_utils
17
18
19 SDK_BUILDER_MAP = {
20 'linux-sdk-mono32':
21 [sys.executable, 'nacl-mono-buildbot.py'],
22 'linux-sdk-mono64':
23 [sys.executable, 'nacl-mono-buildbot.py'],
24 'DEFAULT':
25 [sys.executable, 'buildbot_run.py'],
26 }
27
28
29 def main():
30 option_parser = optparse.OptionParser()
31 chromium_utils.AddPropertiesOptions(option_parser)
32 (options, args) = option_parser.parse_args()
33
34 buildername = options.build_properties.get('buildername', '')
35 cmd = SDK_BUILDER_MAP.get(buildername) or SDK_BUILDER_MAP.get('DEFAULT')
36 build_tools_dir = chromium_utils.FindUpward(
37 os.getcwd(), 'src', 'native_client_sdk', 'src', 'build_tools')
38 os.chdir(build_tools_dir)
39 # Remove BOTO_CONFIG from the environment -- we want to use the NaCl .boto
40 # file that has access to gs://nativeclient-mirror.
41 if 'AWS_CREDENTIAL_FILE' in os.environ:
42 del os.environ['AWS_CREDENTIAL_FILE']
43 if 'BOTO_CONFIG' in os.environ:
44 del os.environ['BOTO_CONFIG']
45 return chromium_utils.RunCommand(cmd + args)
46
47
48 if __name__ == '__main__':
49 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/client.nacl.sdk.recipe_autogen.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698