From bc23baf895b6db4da5ebec9eea600132e6c70dec Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 16 Aug 2019 11:39:17 +0930 Subject: [PATCH] Makefile: fix make check so we can run in parallel. And make travis use -j for `make check` Signed-off-by: Rusty Russell --- .travis/build.sh | 2 +- Makefile | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis/build.sh b/.travis/build.sh index 0680084d6..b7120c7a1 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -45,7 +45,7 @@ if [ "$SOURCE_CHECK_ONLY" == "false" ]; then echo -en 'travis_fold:end:script.2\\r' echo -en 'travis_fold:start:script.3\\r' - make check + make -j$PYTEST_PAR check echo -en 'travis_fold:end:script.3\\r' else git clone https://github.com/lightningnetwork/lightning-rfc.git diff --git a/Makefile b/Makefile index 87180573a..dbbd8d04e 100644 --- a/Makefile +++ b/Makefile @@ -247,9 +247,7 @@ endif check-units: -check: check-units - $(MAKE) installcheck - $(MAKE) pytest +check: check-units installcheck pytest pytest: $(ALL_PROGRAMS) ifeq ($(PYTEST),)