2020-06-06 18:49:04 +01:00
|
|
|
VERSION := $(shell git describe --always --long --dirty --tags)
|
|
|
|
|
|
|
|
build:
|
2020-06-06 18:52:02 +01:00
|
|
|
go mod download
|
2020-06-06 18:49:04 +01:00
|
|
|
go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
|
|
|
|
|
|
|
install:
|
2020-06-06 18:52:02 +01:00
|
|
|
go mod download
|
2020-06-06 18:49:04 +01:00
|
|
|
go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
|
|
|
|
2020-06-10 23:23:09 +01:00
|
|
|
gen:
|
|
|
|
protoc --proto_path pkg/accounts --go_out=plugins=grpc:pkg/accounts/ --go_opt=paths=source_relative pkg/accounts/accounts.proto
|
|
|
|
|
2020-06-06 18:49:25 +01:00
|
|
|
test:
|
2020-06-11 18:55:53 +01:00
|
|
|
docker-compose up --build --exit-code-from=rove-tests --abort-on-container-exit rove-tests
|
|
|
|
go tool cover -html=/tmp/coverage-data/c.out -o /tmp/coverage.html
|
|
|
|
@echo Done, coverage data can be found in /tmp/coverage.html
|
2020-06-07 23:20:39 +01:00
|
|
|
|
2020-06-11 18:55:53 +01:00
|
|
|
.PHONY: build install test gen
|