binctr/.travis.yml
Jess Frazelle c51ec1aa4f update travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-19 22:58:27 -04:00

31 lines
809 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
- sudo ap update && sudo apt install -y libapparmor-dev libseccomp-dev
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)