Add app source, add vendoring and module support

This commit is contained in:
Mayuresh Gaitonde
2019-10-16 15:57:55 -07:00
parent b49447a374
commit a8fd79c0e1
991 changed files with 505284 additions and 415 deletions

View File

@@ -1,23 +1,16 @@
.PHONY: all gocast test
all:
$(MAKE) deps
$(MAKE) gocast
deps:
go get -u golang.org/x/lint/golint
go get -u github.com/golang/dep/cmd/dep
dep ensure
gocast:
go build .
go build -mod=vendor .
debug:
dep ensure
go build -race .
go build -mod=vendor -race .
test:
go test -v -race -short -failfast ./...
go test -v -race -short -failfast -mod=vendor ./...
linux:
GOOS=linux GOARCH=amd64 go build -o gocast_linux .
GOOS=linux GOARCH=amd64 go build -o gocast_linux -mod=vendor .