Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
TravisCI: Remove a couple of linters.
Browse files Browse the repository at this point in the history
The linters take quite a while to run in the TravisCI environment which
causes the deadline to be exceeded.

While here, also increase the allowed deadline for the remaining linters
to 10 minutes and also update Travis to use a new ubuntu distribution.
  • Loading branch information
davecgh committed Mar 16, 2017
1 parent 7e57dbe commit 01a0d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
language: go
go:
- 1.7.x
Expand Down
10 changes: 3 additions & 7 deletions goclean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# The script does automatic checking on a Go package and its sub-packages, including:
# 1. gofmt (http://golang.org/cmd/gofmt/)
# 2. go vet (http://golang.org/cmd/vet)
# 3. gosimple (https://github.com/dominikh/go-simple)
# 4. unconvert (https://github.com/mdempsky/unconvert)
# 5. race detector (http://blog.golang.org/race-detector)
# 6. test coverage (http://blog.golang.org/cover)
# 3. race detector (http://blog.golang.org/race-detector)
# 4. test coverage (http://blog.golang.org/cover)

# gometalinter (github.com/alecthomas/gometalinter) is used to run each each
# static checker.
Expand All @@ -31,8 +29,6 @@ linter_targets=$(glide novendor)
test -z "$(gometalinter --disable-all \
--enable=gofmt \
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--deadline=4m $linter_targets 2>&1 | tee /dev/stderr)"
--deadline=10m $linter_targets 2>&1 | tee /dev/stderr)"

env GORACE="halt_on_error=1" go test -short -race $linter_targets

0 comments on commit 01a0d76

Please sign in to comment.