Skip to content

Commit

Permalink
Increase linter deadline on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Jun 3, 2017
1 parent 0419ab9 commit 2e62708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cache:
directories:
- tools/bin
script:
- CONCURRENT_LINTERS=1 make all
- CONCURRENT_LINTERS=1 LINTER_DEADLINE=180s make all
- tools/bin/goveralls -coverprofile=cover.out -service=travis-ci
deploy:
provider: releases
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ BINARY = $(shell basename $(shell pwd))
VERSION ?= $(shell git describe --dirty)

CONCURRENT_LINTERS ?= $(shell cat /proc/cpuinfo | grep processor | wc -l)
LINTER_DEADLINE ?= 30s

export PATH := $(TOOLDIR)/bin:$(PATH)
SHELL := env PATH=$(PATH) /bin/bash
Expand All @@ -24,7 +25,7 @@ style: tools

lint: tools
@echo Using $(CONCURRENT_LINTERS) processes
gometalinter -j $(CONCURRENT_LINTERS) --disable=gotype $(GO_DIRS)
gometalinter -j $(CONCURRENT_LINTERS) --deadline=$(LINTER_DEADLINE) --disable=gotype $(GO_DIRS)

fmt: tools
gofmt -s -w $(GO_SRC)
Expand Down

0 comments on commit 2e62708

Please sign in to comment.