1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00
crud_generator/vendor/github.com/bxcodec/faker/v3/Makefile

23 lines
531 B
Makefile
Raw Normal View History

2023-10-24 17:03:04 +02:00
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