From 2c619f20129b8b5d9c44a7a310d2ef6e7609ce23 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 27 Feb 2016 22:08:08 -0800 Subject: [PATCH] build: run lint before tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Have `make test` run linting tools before tests rather than after. Lint is likely to find issues quickly. Tests may take a while to run. So do the linting first. Refs: https://github.com/nodejs/node/issues/4546#issuecomment-189755007 PR-URL: https://github.com/nodejs/node/pull/5470 Reviewed-By: Johan Bergström Reviewed-By: Myles Borins Reviewed-By: Evan Lucas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bcb434d6a5576e..d551ef2e446288 100644 --- a/Makefile +++ b/Makefile @@ -111,9 +111,9 @@ v8: $(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS) test: | cctest # Depends on 'all'. - $(PYTHON) tools/test.py --mode=release message parallel sequential -J $(MAKE) jslint $(MAKE) cpplint + $(PYTHON) tools/test.py --mode=release message parallel sequential -J test-parallel: all $(PYTHON) tools/test.py --mode=release parallel -J