add .travis.yml

This commit is contained in:
Song Gao 2019-01-12 14:23:33 -08:00
parent ed5454b50a
commit f6122f5b2f
4 changed files with 37 additions and 2 deletions

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
.phony: default ci test lint vet gofmt
default:
echo 'This make file is for CI.'
exit 1
ci: test lint vet gofmt
test: water.test
sudo ./water.test -test.v
lint:
golint -set_exit_status
vet:
go vet .
gofmt:
gofmt -s -e -l .
water.test: *.go
go test -c