Makefile: fix make check so we can run in parallel.

And make travis use -j for `make check`

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-08-16 11:39:17 +09:30
parent 43edd91440
commit bc23baf895
2 changed files with 2 additions and 4 deletions

View File

@ -45,7 +45,7 @@ if [ "$SOURCE_CHECK_ONLY" == "false" ]; then
echo -en 'travis_fold:end:script.2\\r' echo -en 'travis_fold:end:script.2\\r'
echo -en 'travis_fold:start:script.3\\r' echo -en 'travis_fold:start:script.3\\r'
make check make -j$PYTEST_PAR check
echo -en 'travis_fold:end:script.3\\r' echo -en 'travis_fold:end:script.3\\r'
else else
git clone https://github.com/lightningnetwork/lightning-rfc.git git clone https://github.com/lightningnetwork/lightning-rfc.git

View File

@ -247,9 +247,7 @@ endif
check-units: check-units:
check: check-units check: check-units installcheck pytest
$(MAKE) installcheck
$(MAKE) pytest
pytest: $(ALL_PROGRAMS) pytest: $(ALL_PROGRAMS)
ifeq ($(PYTEST),) ifeq ($(PYTEST),)