mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
Makefile+lint: only limit concurrency on Travis
This commit is contained in:
parent
bb09760864
commit
3543466604
2 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
8
Makefile
8
Makefile
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue