Initial commit

This commit is contained in:
2018-09-17 14:17:54 +02:00
parent c6cdb6c16a
commit 9b11769a70
11 changed files with 553 additions and 0 deletions

30
Makefile Normal file
View File

@ -0,0 +1,30 @@
export GO111MODULE := on
build: bin/server
bin/server: vendor
CGO_ENABLED=0 go build -v -o ./bin/server ./cmd/server
watch:
modd
test:
go test -v ./...
lint:
PATH=$(PATH):./bin/gometalinter gometalinter -e '.*/pkg/mod' --vendor ./...
vendor:
go mod tidy
install-devtools: vendor
# Install modd
GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd
# Install Gometalinter
bash misc/gometalinter/install.sh -b ./bin/gometalinter
clean:
rm -rf ./bin
go clean -i -x -r -modcache
.PHONY: test clean generate vendor install-devtools lint watch