From ac0640ea2bc23b2364d5c7ef7fbc39c1702e1cc4 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 28 Jan 2018 20:22:32 -0500 Subject: Increase gometalinter timeout and make it go faster locally Signed-off-by: Dave Henderson --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 07c851a1..105c6bcf 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,12 @@ docs/themes/hugo-material-docs: gen-docs: docs/themes/hugo-material-docs cd docs/; hugo +ifeq ("$(CI)","true") lint: - gometalinter -j 1 --vendor --deadline 70s --disable gotype --enable gofmt --enable goimports --enable misspell --enable unused --disable gas + gometalinter -j 1 --vendor --deadline 120s --disable gotype --enable gofmt --enable goimports --enable misspell --enable unused --disable gas +else +lint: + gometalinter -j $(shell nproc) --vendor --deadline 120s --disable gotype --enable gofmt --enable goimports --enable misspell --enable unused --disable gas +endif .PHONY: gen-changelog clean test build-x compress-all build-release build build-integration-image test-integration-docker gen-docs lint -- cgit v1.2.3