diff options
| author | David Hill <[email protected]> | 2016-11-23 15:24:26 -0500 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2017-07-11 11:24:36 -0500 |
| commit | 9fadf46324c4cfc36cc82310ca92ded38af91249 (patch) | |
| tree | 7ee45c2a10640ab30ad0f169bad9c2b87d12bc16 /.travis.yml | |
| parent | e250ec7f597aa5cd2c9f38b9cbf3dbc81cc1e3bb (diff) | |
travis: Use gometalinter
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 984e073..1a8e3e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,23 @@ language: go go: - - 1.5.4 - 1.6.3 - - 1.7 + - 1.7.4 +sudo: false install: - - go get -v golang.org/x/tools/cmd/cover + - go get -v github.com/alecthomas/gometalinter + - gometalinter --install script: - - go test -v -tags=safe ./spew - - go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov + - export PATH=$PATH:$HOME/gopath/bin + - export GORACE="halt_on_error=1" + - test -z "$(gometalinter --disable-all + --enable=gofmt + --enable=golint + --enable=vet + --enable=gosimple + --enable=unconvert + --deadline=4m ./spew | tee /dev/stderr)" + - go test -v -race -tags safe ./spew + - go test -v -race -tags testcgo ./spew -covermode=count -coverprofile=profile.cov after_success: - go get -v github.com/mattn/goveralls - - export PATH=$PATH:$HOME/gopath/bin - goveralls -coverprofile=profile.cov -service=travis-ci |
