Chromium Code Reviews| 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 |