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

Unified Diff: scripts/slave/recipes/devtools.py

Issue 2290923002: DevTools: Create recipe and builder for devtools (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « scripts/slave/recipes/OWNERS ('k') | scripts/slave/recipes/devtools.expected/devtools_fyi.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipes/devtools.py
diff --git a/scripts/slave/recipes/devtools.py b/scripts/slave/recipes/devtools.py
new file mode 100644
index 0000000000000000000000000000000000000000..304ae4706da40ae46ba9deb06474041e302804c9
--- /dev/null
+++ b/scripts/slave/recipes/devtools.py
@@ -0,0 +1,51 @@
+from recipe_engine.types import freeze
+
+DEPS = [
+ 'chromium_tests',
+ 'depot_tools/bot_update',
+ 'depot_tools/gclient',
+ 'recipe_engine/path',
+ 'recipe_engine/properties',
+ 'recipe_engine/python',
+ 'recipe_engine/step',
+]
+
+MASTERS = freeze({
+ 'chromium.fyi': {
+ 'buildername': 'Devtools',
+ 'testname': 'devtools_fyi',
+ },
+})
+
+def RunSteps(api):
+ api.gclient.set_config('chromium')
+ api.bot_update.ensure_checkout(force=True)
+
+ has_devtools_file = False
+ files = api.chromium_tests.get_files_affected_by_patch()
chenwilliam 2016/08/30 01:27:55 What I'm trying to do is figure out if the most re
Ryan Tseng 2016/08/30 18:13:39 I'm not super familiar with this but it looks righ
+ for f in files:
+ if f.startswith('third_party/WebKit/Source/devtools'):
+ has_devtools_file = True
+
+ if not has_devtools_file:
+ api.step('skip checks', ['echo', 'no devtools file in patch'])
+ return
+
+ devtoolsPath = api.path['checkout'].join('third_party', 'WebKit', 'Source',
Ryan Tseng 2016/08/30 18:13:39 Did you get any python coverage errors here? I don
chenwilliam 2016/09/01 18:00:44 Added coverage.
+ 'devtools')
+ npmPath = api.path['checkout'].join('third_party', 'WebKit', 'Source', 'devtools',
Ryan Tseng 2016/08/30 18:13:39 80 char
chenwilliam 2016/09/01 18:00:44 Done.
+ 'scripts', 'nodejs', 'npm.py')
Ryan Tseng 2016/08/30 18:13:39 where's this from? I can't find it
chenwilliam 2016/09/01 18:00:44 Just landed in https://codereview.chromium.org/227
+
+ api.python('install node.js and npm', npmPath, ['--version'])
+ api.python('install eslint', npmPath, ['install', 'eslint@2'])
+ api.python('run eslint', npmPath, ['run', 'lint'], cwd=devtoolsPath)
+
+def GenTests(api):
+ for mastername, config in MASTERS.iteritems():
+ yield (
+ api.test(config['testname']) +
+ api.properties.generic(
+ buildername=config['buildername'],
+ mastername=mastername,
+ )
+ )
« no previous file with comments | « scripts/slave/recipes/OWNERS ('k') | scripts/slave/recipes/devtools.expected/devtools_fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698