mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
23 lines
531 B
Makefile
23 lines
531 B
Makefile
BINARY=faker
|
|
|
|
build: test
|
|
@go build ./...
|
|
|
|
test:
|
|
@go test -v ./... -cover -race -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
unittest:
|
|
@go test -v -short ./...
|
|
|
|
# Linter
|
|
lint-prepare:
|
|
@echo "Installing golangci-lint"
|
|
# @go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s latest
|
|
|
|
lint:
|
|
./bin/golangci-lint run ./...
|
|
clean:
|
|
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
|
|
|
|
.PHONY: lint lint-prepare clean build unittest |