rove/Makefile
Marc Di Luzio 14424c16ca Refactor testing into docker file
This means a decent scale refactor but ends with our testing being much simpler

	Key changes:
		* single Dockerfile for all services
		* tests moved into docker up so don't need to be run locally
		* configurations moved to environment
2020-06-11 18:16:11 +01:00

20 lines
648 B
Makefile

VERSION := $(shell git describe --always --long --dirty --tags)
build:
go mod download
go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
install:
go mod download
go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
gen:
protoc --proto_path pkg/accounts --go_out=plugins=grpc:pkg/accounts/ --go_opt=paths=source_relative pkg/accounts/accounts.proto
test:
docker-compose up --build --exit-code-from=rove-tests --abort-on-container-exit
# TODO: Collect and convert the coverage data to html
# go tool cover -html=/tmp/c.out -o /tmp/coverage.html
.PHONY: install test