full.py 2.21 KB
Newer Older
1 2 3 4 5 6
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

DEPS = [
  'gclient',
7
  'recipe_engine/context',
8 9
  'recipe_engine/path',
  'recipe_engine/properties',
10
  'recipe_engine/step',
11 12 13 14 15
]


TEST_CONFIGS = [
  'android',
16
  'angle',
17 18 19 20
  'boringssl',
  'build_internal',
  'build_internal_scripts_slave',
  'catapult',
21
  'celab',
22 23 24
  'crashpad',
  'custom_tabs_client',
  'dart',
25
  'dawn',
26
  'disable_syntax_validation',
27
  'emscripten_releases',
28
  'expect_tests',
29 30 31 32
  'gerrit_test_cq_normal',
  'gyp',
  'infra',
  'infradata_master_manager',
33
  'infradata_config',
34 35 36 37
  'internal_deps',
  'luci_gae',
  'luci_go',
  'luci_py',
38
  'master_deps',
39
  'nacl',
40
  'openscreen',
41 42
  'pdfium',
  'recipes_py',
43
  'recipes_py_bare',
44 45 46 47
  'slave_deps',
  'wasm_llvm',
  'webports',
  'with_branch_heads',
48
  'with_tags',
49 50 51 52 53 54 55
]


def RunSteps(api):
  for config_name in TEST_CONFIGS:
    api.gclient.make_config(config_name)

56
  src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache')
57 58 59 60
  soln = src_cfg.solutions.add()
  soln.name = 'src'
  soln.url = 'https://chromium.googlesource.com/chromium/src.git'
  soln.revision = api.properties.get('revision')
61
  soln.custom_vars = {'string_var': 'string_val', 'true_var': True}
62 63 64 65
  src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision'
  api.gclient.c = src_cfg
  api.gclient.checkout()

66
  api.gclient.spec_alias = 'Angle'
67 68
  bl_cfg = api.gclient.make_config()
  soln = bl_cfg.solutions.add()
69 70 71
  soln.name = 'Angle'
  soln.url = 'https://chromium.googlesource.com/angle/angle.git'
  bl_cfg.revisions['src/third_party/angle'] = 'refs/heads/lkgr'
72

73
  bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision'
74
  with api.context(cwd=api.path['start_dir'].join('src', 'third_party')):
75
    api.gclient.checkout(
76
        gclient_config=bl_cfg)
77

78 79
  api.gclient.got_revision_reverse_mapping(bl_cfg)

80 81 82 83 84 85 86 87 88 89
  api.gclient.break_locks()

  del api.gclient.spec_alias

  api.gclient.runhooks()


def GenTests(api):
  yield api.test('basic')

90 91
  yield api.test('buildbot') + api.properties(path_config='buildbot')

92 93 94
  yield api.test('revision') + api.properties(revision='abc')

  yield api.test('tryserver') + api.properties.tryserver()