| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import contextlib | 5 import contextlib |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'depot_tools/bot_update', | 8 'depot_tools/bot_update', |
| 9 'depot_tools/gclient', | 9 'depot_tools/gclient', |
| 10 'file', | 10 'file', |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 # Package all variants | 250 # Package all variants |
| 251 PackageIOSVariant(api, | 251 PackageIOSVariant(api, |
| 252 'debug', 'ios_debug', 'ios_debug_sim', 'ios') | 252 'debug', 'ios_debug', 'ios_debug_sim', 'ios') |
| 253 PackageIOSVariant(api, | 253 PackageIOSVariant(api, |
| 254 'profile', 'ios_profile', 'ios_debug_sim', 'ios-profile') | 254 'profile', 'ios_profile', 'ios_debug_sim', 'ios-profile') |
| 255 PackageIOSVariant(api, | 255 PackageIOSVariant(api, |
| 256 'release', 'ios_release', 'ios_debug_sim', 'ios-release') | 256 'release', 'ios_release', 'ios_debug_sim', 'ios-release') |
| 257 | 257 |
| 258 | 258 |
| 259 def GetCheckout(api): | 259 def GetCheckout(api): |
| 260 src_cfg = api.gclient.make_config(GIT_MODE=True) | 260 src_cfg = api.gclient.make_config() |
| 261 soln = src_cfg.solutions.add() | 261 soln = src_cfg.solutions.add() |
| 262 soln.name = 'src/flutter' | 262 soln.name = 'src/flutter' |
| 263 soln.url = \ | 263 soln.url = \ |
| 264 'https://chromium.googlesource.com/external/github.com/flutter/engine' | 264 'https://chromium.googlesource.com/external/github.com/flutter/engine' |
| 265 # TODO(eseidel): What does parent_got_revision_mapping do? Do I care? | 265 # TODO(eseidel): What does parent_got_revision_mapping do? Do I care? |
| 266 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' | 266 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
| 267 src_cfg.target_os = set(['android']) | 267 src_cfg.target_os = set(['android']) |
| 268 api.gclient.c = src_cfg | 268 api.gclient.c = src_cfg |
| 269 api.gclient.c.got_revision_mapping['src/flutter'] = 'got_engine_revision' | 269 api.gclient.c.got_revision_mapping['src/flutter'] = 'got_engine_revision' |
| 270 # TODO(eseidel): According to iannucci force=True is required. | 270 # TODO(eseidel): According to iannucci force=True is required. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 BuildIOS(api) | 302 BuildIOS(api) |
| 303 | 303 |
| 304 | 304 |
| 305 def GenTests(api): | 305 def GenTests(api): |
| 306 # A valid commit to flutter/engine, to make the gsutil urls look real. | 306 # A valid commit to flutter/engine, to make the gsutil urls look real. |
| 307 for platform in ('mac', 'linux'): | 307 for platform in ('mac', 'linux'): |
| 308 yield (api.test(platform) + api.platform(platform, 64) | 308 yield (api.test(platform) + api.platform(platform, 64) |
| 309 + api.properties(mastername='client.flutter', | 309 + api.properties(mastername='client.flutter', |
| 310 buildername='%s Engine' % platform.capitalize(), | 310 buildername='%s Engine' % platform.capitalize(), |
| 311 slavename='fake-m1', clobber='')) | 311 slavename='fake-m1', clobber='')) |
| OLD | NEW |