Makefile+lint: only limit concurrency on Travis

This commit is contained in:
Oliver Gugger 2020-06-24 09:58:17 +02:00
parent bb09760864
commit 3543466604
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 7 additions and 5 deletions

View file

@ -2,10 +2,6 @@ run:
# timeout for analysis
deadline: 4m
# Linting uses a lot of memory. Keep it under control by only running a single
# worker.
concurrency: 1
linters-settings:
govet:
# Don't report about shadowed variables

View file

@ -29,7 +29,13 @@ XARGS := xargs -L 1
include make/testing_flags.mk
LINT = $(LINT_BIN) run -v
# Linting uses a lot of memory, so keep it under control by limiting the number
# of workers if requested.
ifneq ($(workers),)
LINT_WORKERS = --concurrency=$(workers)
endif
LINT = $(LINT_BIN) run -v $(LINT_WORKERS)
GREEN := "\\033[0;32m"
NC := "\\033[0m"