Index: Tools/GardeningServer/makefile |
diff --git a/Tools/GardeningServer/makefile b/Tools/GardeningServer/makefile |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bb30d7711851515cb3aa433c8ebc2ff7dbac504d |
--- /dev/null |
+++ b/Tools/GardeningServer/makefile |
@@ -0,0 +1,27 @@ |
+# 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 |
+ |
+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 |