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

Unified Diff: scripts/slave/recipes/blimp/integration.py

Issue 2416253003: Add the recipe_modules/blimp for integration bot (Closed)
Patch Set: add script steps in example.py Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/blimp/integration.py
diff --git a/scripts/slave/recipes/blimp/integration.py b/scripts/slave/recipes/blimp/integration.py
deleted file mode 100644
index a07e7ba2129d421e05bec0ea525ac1638ae83c68..0000000000000000000000000000000000000000
--- a/scripts/slave/recipes/blimp/integration.py
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
mikecase (-- gone --) 2016/10/15 00:05:37 Did you mean to delete this file?
shenghuazhang 2016/10/17 23:22:07 Oh this shouldn't be here... This file shouldn't b
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from recipe_engine import recipe_api
-from recipe_engine.recipe_api import Property
-from recipe_engine.types import freeze
-
-DEPS = [
- 'chromium',
- 'chromium_android',
- 'chromium_swarming',
- 'chromium_tests',
- 'depot_tools/bot_update',
- 'depot_tools/gclient',
- 'recipe_engine/json',
- 'recipe_engine/path',
- 'recipe_engine/platform',
- 'recipe_engine/properties',
- 'recipe_engine/python',
- 'recipe_engine/step',
- 'swarming',
- 'test_results',
- 'test_utils',
-]
-
-BUILDERS = freeze({
- 'chromium.fyi': {
- 'Blimp Client Engine Integration': {
- 'chromium_config': 'android',
- 'config': 'main_builder',
- 'gclient_apply_config': 'android',
- 'gclient_config': 'chromium',
- 'target': 'Debug',
- },
- },
-})
-
-REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'
-
-def RunSteps(api):
- android_build = api.path['slave_build'].join('src', 'out-android', 'Debug')
- linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug')
- mastername = api.properties.get('mastername')
- buildername = api.properties.get('buildername')
- builder = BUILDERS[mastername][buildername]
- api.chromium_android.configure_from_properties(
- builder['config'],
- REPO_NAME='src',
- REPO_URL=REPO_URL,
- INTERNAL=False,
- BUILD_CONFIG=builder['target'])
-
- api.chromium.set_config('chromium')
- api.gclient.set_config(builder['gclient_config'])
- api.gclient.apply_config(builder['gclient_apply_config'])
- api.bot_update.ensure_checkout()
- api.chromium.ensure_goma()
- api.chromium_android.clean_local_files()
- api.chromium.runhooks()
-
- api.chromium.run_mb(mastername=mastername,
- buildername=buildername,
- build_dir=linux_build,
- phase='engine')
- api.chromium.compile(targets=['blimp'],
- out_dir=linux_build)
- api.chromium.run_mb(mastername=mastername,
- buildername=buildername,
- build_dir=android_build,
- phase='client')
- api.chromium.compile(targets=['blimp', 'chrome_public_apk'],
- out_dir=android_build)
-
-
-def GenTests(api):
- sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
-
- yield (
- api.test('%s_test_pass' % sanitize('Blimp Android Tester')) +
- api.properties.generic(
- buildername='Blimp Client Engine Integration',
- mastername='chromium.fyi')
- )

Powered by Google App Engine
This is Rietveld 408576698