mirror of
https://github.com/fumiama/water.git
synced 2026-06-21 11:20:40 +08:00
add .travis.yml
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user