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

Side by Side Diff: buildbot/buildbot_run.py

Issue 13869005: Dropping the scons generator. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « PRESUBMIT.py ('k') | pylib/gyp/MSVSNew.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 Google Inc. All rights reserved. 2 # Copyright (c) 2012 Google Inc. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 """Argument-less script to select what to run on the buildbots.""" 7 """Argument-less script to select what to run on the buildbots."""
8 8
9 9
10 import os 10 import os
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 print '@@@BUILD_STEP ' + title + '@@@' 84 print '@@@BUILD_STEP ' + title + '@@@'
85 sys.stdout.flush() 85 sys.stdout.flush()
86 env = os.environ.copy() 86 env = os.environ.copy()
87 if msvs_version: 87 if msvs_version:
88 env['GYP_MSVS_VERSION'] = msvs_version 88 env['GYP_MSVS_VERSION'] = msvs_version
89 command = ' '.join( 89 command = ' '.join(
90 [sys.executable, 'trunk/gyptest.py', 90 [sys.executable, 'trunk/gyptest.py',
91 '--all', 91 '--all',
92 '--passed', 92 '--passed',
93 '--format', format, 93 '--format', format,
94 '--chdir', 'trunk', 94 '--chdir', 'trunk'])
95 '--path', '../scons'])
96 if format == 'android': 95 if format == 'android':
97 # gyptest needs the environment setup from envsetup/lunch in order to build 96 # gyptest needs the environment setup from envsetup/lunch in order to build
98 # using the 'android' backend, so this is done in a single shell. 97 # using the 'android' backend, so this is done in a single shell.
99 retcode = subprocess.call( 98 retcode = subprocess.call(
100 ['/bin/bash', 99 ['/bin/bash',
101 '-c', 'source build/envsetup.sh && lunch full-eng && cd %s && %s' 100 '-c', 'source build/envsetup.sh && lunch full-eng && cd %s && %s'
102 % (ROOT_DIR, command)], 101 % (ROOT_DIR, command)],
103 cwd=ANDROID_DIR, env=env) 102 cwd=ANDROID_DIR, env=env)
104 else: 103 else:
105 retcode = subprocess.call(command, cwd=ROOT_DIR, env=env, shell=True) 104 retcode = subprocess.call(command, cwd=ROOT_DIR, env=env, shell=True)
(...skipping 11 matching lines...) Expand all
117 shutil.rmtree(OUT_DIR, ignore_errors=True) 116 shutil.rmtree(OUT_DIR, ignore_errors=True)
118 print 'Done.' 117 print 'Done.'
119 118
120 retcode = 0 119 retcode = 0
121 # The Android gyp bot runs on linux so this must be tested first. 120 # The Android gyp bot runs on linux so this must be tested first.
122 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-android': 121 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-android':
123 PrepareAndroidTree() 122 PrepareAndroidTree()
124 retcode += GypTestFormat('android') 123 retcode += GypTestFormat('android')
125 elif sys.platform.startswith('linux'): 124 elif sys.platform.startswith('linux'):
126 retcode += GypTestFormat('ninja') 125 retcode += GypTestFormat('ninja')
127 retcode += GypTestFormat('scons')
128 retcode += GypTestFormat('make') 126 retcode += GypTestFormat('make')
129 elif sys.platform == 'darwin': 127 elif sys.platform == 'darwin':
130 retcode += GypTestFormat('ninja') 128 retcode += GypTestFormat('ninja')
131 retcode += GypTestFormat('xcode') 129 retcode += GypTestFormat('xcode')
132 retcode += GypTestFormat('make') 130 retcode += GypTestFormat('make')
133 elif sys.platform == 'win32': 131 elif sys.platform == 'win32':
134 retcode += GypTestFormat('ninja') 132 retcode += GypTestFormat('ninja')
135 retcode += GypTestFormat('msvs-2008', format='msvs', msvs_version='2008') 133 retcode += GypTestFormat('msvs-2008', format='msvs', msvs_version='2008')
136 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-win64': 134 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-win64':
137 retcode += GypTestFormat('msvs-2010', format='msvs', msvs_version='2010') 135 retcode += GypTestFormat('msvs-2010', format='msvs', msvs_version='2010')
138 else: 136 else:
139 raise Exception('Unknown platform') 137 raise Exception('Unknown platform')
140 if retcode: 138 if retcode:
141 # TODO(bradnelson): once the annotator supports a postscript (section for 139 # TODO(bradnelson): once the annotator supports a postscript (section for
142 # after the build proper that could be used for cumulative failures), 140 # after the build proper that could be used for cumulative failures),
143 # use that instead of this. This isolates the final return value so 141 # use that instead of this. This isolates the final return value so
144 # that it isn't misattributed to the last stage. 142 # that it isn't misattributed to the last stage.
145 print '@@@BUILD_STEP failures@@@' 143 print '@@@BUILD_STEP failures@@@'
146 sys.exit(retcode) 144 sys.exit(retcode)
147 145
148 146
149 if __name__ == '__main__': 147 if __name__ == '__main__':
150 GypBuild() 148 GypBuild()
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | pylib/gyp/MSVSNew.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698