language: go
go:
  - 1.8.1

before_script:
  - go get github.com/alecthomas/gometalinter
  - gometalinter --install

script:
  - go build -race -v -gcflags "-N -l" ./...
  - exec 5>&1 && output="$(gofmt -l -w "$@" | tee /dev/fd/5)" && [[ -z "$output" ]]
  - gometalinter --exclude=corefoundation.go --deadline=60s --vendor --cyclo-over=20 --dupl-threshold=100 --disable=gotype ./...
language: go
go:
  - 1.8.1

before_script:
  - go get github.com/alecthomas/gometalinter
  - gometalinter --install

script:
  - go build -race -v -gcflags "-N -l" ./...
  - exec 5>&1 && output="$(gofmt -l -w "$@" | tee /dev/fd/5)" && [[ -z "$output" ]]
  - gometalinter --exclude=corefoundation.go --deadline=60s --vendor --cyclo-over=30 --dupl-threshold=100 --disable=gotype ./...
Set gometalinter cyclo to 30
Set gometalinter cyclo to 30

Signed-off-by: Artur Troian <074b12614ab7f9e8d27abe59a593f8d13fab9fa5@gmail.com>
