binctr/.travis.yml
Jess Frazelle d3fbdd212e cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-19 22:31:34 -04:00

30 lines
734 B
YAML

---
language: go
sudo: required
services:
- docker
notifications:
email: true
go:
- 1.x
- tip
env:
global:
- GO15VENDOREXPERIMENT=1
matrix:
allow_failures:
- go: tip
fast_finish: true
install:
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
script:
- make IMAGE=alpine
- go vet $(go list ./... | grep -v vendor)
- staticcheck $(go list ./... | grep -v vendor)
- test -z "$(golint ./... | grep -v vendor | tee /dev/stderr)"
- test -z "$(gofmt -s -l . | grep -v vendor | tee /dev/stderr)"
- go test $(go list ./... | grep -v vendor)
- make cover
after_success:
- bash <(curl -s https://codecov.io/bash)