| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 DEPS = [ | 5 DEPS = [ |
| 6 'chromium', | 6 'chromium', |
| 7 'gclient', | 7 'gclient', |
| 8 'path', | |
| 9 'platform', | 8 'platform', |
| 10 'properties', | 9 'properties', |
| 11 'python', | |
| 12 'step', | |
| 13 'tryserver', | 10 'tryserver', |
| 14 'webrtc', | 11 'webrtc', |
| 15 ] | 12 ] |
| 16 | 13 |
| 17 | 14 |
| 18 def GenSteps(api): | 15 def GenSteps(api): |
| 19 config_vals = {} | 16 config_vals = {} |
| 20 config_vals.update( | 17 config_vals.update( |
| 21 dict((str(k),v) for k,v in api.properties.iteritems() if k.isupper()) | 18 dict((str(k),v) for k,v in api.properties.iteritems() if k.isupper()) |
| 22 ) | 19 ) |
| 23 api.webrtc.set_config('webrtc_standalone', **config_vals) | 20 api.webrtc.set_config('webrtc_standalone', **config_vals) |
| 24 api.step.auto_resolve_conflicts = True | |
| 25 | 21 |
| 26 yield api.gclient.checkout() | 22 yield api.gclient.checkout() |
| 27 yield api.chromium.runhooks() | 23 yield api.chromium.runhooks() |
| 28 if api.tryserver.is_tryserver: | 24 if api.tryserver.is_tryserver: |
| 29 yield api.webrtc.apply_svn_patch() | 25 yield api.webrtc.apply_svn_patch() |
| 30 | 26 |
| 31 yield api.chromium.compile() | 27 yield api.chromium.compile() |
| 32 yield api.webrtc.add_baremetal_tests() | 28 yield api.webrtc.add_baremetal_tests() |
| 33 | 29 |
| 34 | 30 |
| 35 def GenTests(api): | 31 def GenTests(api): |
| 36 for plat in ('win', 'mac', 'linux'): | 32 |
| 37 for bits in (32, 64): | 33 def props(build_config, bits, buildername, revision=None, patch_url=None): |
| 38 for build_config in ('Debug', 'Release'): | 34 return api.properties(BUILD_CONFIG=build_config, |
| 39 yield ( | |
| 40 api.test('buildbot_%s%s_%s' % (plat, bits, build_config)) + | |
| 41 api.properties(BUILD_CONFIG=build_config, | |
| 42 TARGET_BITS=bits, | 35 TARGET_BITS=bits, |
| 43 buildername='buildbot builder', | 36 buildername=buildername, |
| 44 slavename='slavename', | |
| 45 mastername='mastername') + | |
| 46 api.platform(plat, bits) | |
| 47 ) | |
| 48 | |
| 49 for plat in ('win', 'mac', 'linux'): | |
| 50 for bits in (32, 64): | |
| 51 for build_config in ('Debug', 'Release'): | |
| 52 yield ( | |
| 53 api.test('trybot_%s%s_%s' % (plat, bits, build_config)) + | |
| 54 api.properties(BUILD_CONFIG=build_config, | |
| 55 TARGET_BITS=bits, | |
| 56 buildername='trybot builder', | |
| 57 slavename='slavename', | 37 slavename='slavename', |
| 58 mastername='mastername', | 38 mastername='mastername', |
| 59 revision='12345', | 39 revision=revision, |
| 60 patch_url='try_job_svn_patch') + | 40 patch_url=patch_url) |
| 61 api.platform(plat, bits) | 41 |
| 62 ) | 42 for kind in ['buildbot', 'trybot']: |
| 43 revision = '12345' if kind == 'trybot' else None |
| 44 patch_url = 'try_job_svn_patch' if kind == 'trybot' else None |
| 45 |
| 46 yield ( |
| 47 api.test('%s_win32_Release' % kind) + |
| 48 props('Release', 32, kind, revision=revision, patch_url=patch_url) + |
| 49 api.platform('win', 64) |
| 50 ) |
| 51 yield ( |
| 52 api.test('%s_mac32_Release' % kind) + |
| 53 props('Release', 32, kind, revision=revision, patch_url=patch_url) + |
| 54 api.platform('mac', 64) |
| 55 ) |
| 56 yield ( |
| 57 api.test('%s_linux64_Release' % kind) + |
| 58 props('Release', 64, kind, revision=revision, patch_url=patch_url) + |
| 59 api.platform('linux', 64) |
| 60 ) |
| OLD | NEW |