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

Unified Diff: Tools/GardeningServer/makefile

Issue 462973002: Sheriff-O-Matic: Merge and update READMEs, add makefile for testing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Tools/GardeningServer/README-mocha ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/makefile
diff --git a/Tools/GardeningServer/makefile b/Tools/GardeningServer/makefile
new file mode 100644
index 0000000000000000000000000000000000000000..04b66002451d129df1c879e29da570685ad765c6
--- /dev/null
+++ b/Tools/GardeningServer/makefile
@@ -0,0 +1,28 @@
+# Copyright 2014 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.
+
+NPM_VERSION := $(shell npm --version 2>/dev/null)
+BOWER_VERSION := $(shell bower --version 2>/dev/null)
+
+check:
+ifndef NPM_VERSION
+ $(error npm not found. Install from nodejs.org or see README-mocha)
+endif
+ifndef BOWER_VERSION
+ @echo "bower not found. Installing:";
+ npm install -g bower
+endif
+ @echo "npm and bower are available."
ojan 2014/08/12 03:36:39 I prefer tools that are silent as possible on succ
michaelpg 2014/08/12 16:37:16 Done.
+
+update: check
+ bower update
+ npm update
+
+test: check
+ xvfb-run ./node_modules/karma/bin/karma start
+
+single-test: check
+ xvfb-run ./node_modules/karma/bin/karma start --single-run
+
+.PHONY: check update test single-test
« no previous file with comments | « Tools/GardeningServer/README-mocha ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698