OLD | NEW |
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 filecmp | 10 import filecmp |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 retcode += GypTestFormat('make') | 222 retcode += GypTestFormat('make') |
223 PrepareCmake() | 223 PrepareCmake() |
224 retcode += GypTestFormat('cmake') | 224 retcode += GypTestFormat('cmake') |
225 elif sys.platform == 'darwin': | 225 elif sys.platform == 'darwin': |
226 retcode += GypTestFormat('ninja') | 226 retcode += GypTestFormat('ninja') |
227 retcode += GypTestFormat('xcode') | 227 retcode += GypTestFormat('xcode') |
228 retcode += GypTestFormat('make') | 228 retcode += GypTestFormat('make') |
229 elif sys.platform == 'win32': | 229 elif sys.platform == 'win32': |
230 retcode += GypTestFormat('ninja') | 230 retcode += GypTestFormat('ninja') |
231 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-win64': | 231 if os.environ['BUILDBOT_BUILDERNAME'] == 'gyp-win64': |
232 retcode += GypTestFormat('msvs-ninja-2012', format='msvs-ninja', | 232 retcode += GypTestFormat('msvs-ninja-2013', format='msvs-ninja', |
233 msvs_version='2012', | 233 msvs_version='2013', |
234 tests=[ | 234 tests=[ |
235 'test\generator-output\gyptest-actions.py', | 235 'test\generator-output\gyptest-actions.py', |
236 'test\generator-output\gyptest-relocate.py', | 236 'test\generator-output\gyptest-relocate.py', |
237 'test\generator-output\gyptest-rules.py']) | 237 'test\generator-output\gyptest-rules.py']) |
238 retcode += GypTestFormat('msvs-2010', format='msvs', msvs_version='2010') | 238 retcode += GypTestFormat('msvs-2013', format='msvs', msvs_version='2013') |
239 retcode += GypTestFormat('msvs-2012', format='msvs', msvs_version='2012') | |
240 else: | 239 else: |
241 raise Exception('Unknown platform') | 240 raise Exception('Unknown platform') |
242 if retcode: | 241 if retcode: |
243 # TODO(bradnelson): once the annotator supports a postscript (section for | 242 # TODO(bradnelson): once the annotator supports a postscript (section for |
244 # after the build proper that could be used for cumulative failures), | 243 # after the build proper that could be used for cumulative failures), |
245 # use that instead of this. This isolates the final return value so | 244 # use that instead of this. This isolates the final return value so |
246 # that it isn't misattributed to the last stage. | 245 # that it isn't misattributed to the last stage. |
247 print '@@@BUILD_STEP failures@@@' | 246 print '@@@BUILD_STEP failures@@@' |
248 sys.exit(retcode) | 247 sys.exit(retcode) |
249 | 248 |
250 | 249 |
251 if __name__ == '__main__': | 250 if __name__ == '__main__': |
252 GypBuild() | 251 GypBuild() |
OLD | NEW |