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

Unified Diff: PRESUBMIT.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 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 | « .gitignore ('k') | infra/config/recipes.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
new file mode 100755
index 0000000000000000000000000000000000000000..e0887978786b5ecd85ba6eed93f335cb78d4cc54
--- /dev/null
+++ b/PRESUBMIT.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+import os
+import re
+import subprocess
+import sys
+
+def CommonChecks(input_api, output_api):
+ def tests(*path):
+ return input_api.canned_checks.GetUnitTestsInDirectory(
+ input_api,
+ output_api,
+ input_api.os_path.join(*path),
+ whitelist=[r'.+_test\.py'])
+ return input_api.RunTests(
+ tests('recipe_engine', 'unittests') +
+ tests('unittests'))
+
+CheckChangeOnUpload = CommonChecks
+CheckChangeOnCommit = CommonChecks
« no previous file with comments | « .gitignore ('k') | infra/config/recipes.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698