pominal/Makefile
Dan Anglin 99ebc86270
refactor: add lint test and refactor code.
- lint test using golangci-lint.
- lint test added as a job in the testing stage.
- code refactoring based on feedback.
2020-01-24 09:51:21 +00:00

22 lines
362 B
Makefile

NAME := pominal
BIN_DIR := ./bin
BIN_FILE := $(BIN_DIR)/$(NAME)
.PHONY: all test_unit build clean
all: test_unit build
test_unit:
@go test -v -coverprofile=cover.out .
test_cover_report: test_unit
@go tool cover -html=cover.out -o code-coverage.html
test_lint:
@golangci-lint run --color always
build:
@go build -a -v -o $(BIN_FILE)
clean:
@go clean