Merge pull request #4124 from halseth/travis-lint-concurrency

travis+lint+make: limit lint concurrency only on travis
This commit is contained in:
Conner Fromknecht 2020-03-31 16:09:50 -07:00 committed by GitHub
commit 0b49783650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 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
# Skip autogenerated files for mobile.
skip-files:
- "mobile\\/.*generated\\.go"

View File

@ -41,7 +41,7 @@ jobs:
script:
- make rpc-check
- make unit pkg=... case=_NONE_
- make lint
- make lint workers=1
- make btcd
- LNDBUILDSYS=windows-amd64 bash ./build/release/release.sh
- stage: Test

View File

@ -51,7 +51,13 @@ include make/testing_flags.mk
DEV_TAGS := $(if ${tags},$(DEV_TAGS) ${tags},$(DEV_TAGS))
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"