aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-06-13 22:14:19 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-06-13 22:14:19 +0100
commit31ce8e9a3ce48d8fae08e6be6dee3248b5b63a7a (patch)
treeff60540fbabc7be7243057c72aad5154d5724ae3 /.travis.yml
parentc074b8694f28ab6b3cc1ccb31474cfa507f73e81 (diff)
Run the linter as part of tests.
Fix lint warnings.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index dc81a35..3f16b07 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,9 +8,13 @@ go:
- 1.6.2
- tip
+before_install:
+ - go get -v github.com/golang/lint/golint
+
sudo: false
script:
- go build -v ./...
- go list ./... |grep -v vendor/ |xargs go test
- gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
- go list ./... |grep -v vendor/ |xargs go vet
+ - go list ./... |grep -v vendor/ |xargs -L1 golint