From b900c9ad5c2506bcbb7a6390984a730c9699c489 Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Wed, 10 Jan 2018 18:13:36 +0000 Subject: [PATCH] add travis Signed-off-by: Huamin Chen --- .travis | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis diff --git a/.travis b/.travis new file mode 100644 index 000000000..59a9afecf --- /dev/null +++ b/.travis @@ -0,0 +1,14 @@ +language: go +branches: + only: + - master + +go: 1.9.x + +before_script: + - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) + - go get github.com/golang/lint/golint + +script: + - test -z $(gofmt -s -l $GO_FILES) + - go vet -v $(go list ./... | grep -v /vendor/)