summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-faker/faker/v4/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-faker/faker/v4/Makefile')
-rw-r--r--vendor/github.com/go-faker/faker/v4/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/github.com/go-faker/faker/v4/Makefile b/vendor/github.com/go-faker/faker/v4/Makefile
new file mode 100644
index 0000000..176b5a8
--- /dev/null
+++ b/vendor/github.com/go-faker/faker/v4/Makefile
@@ -0,0 +1,44 @@
+
+# Exporting bin folder to the path for makefile
+export PATH := $(PWD)/bin:$(PATH)
+# Default Shell
+export SHELL := bash
+# Type of OS: Linux or Darwin.
+export OSTYPE := $(shell uname -s)
+
+ifeq ($(OSTYPE),Darwin)
+ export MallocNanoZone=0
+endif
+
+include ./misc/makefile/tools.Makefile
+
+build: test
+ @go build ./...
+
+install-deps: gotestsum tparse ## Install Development Dependencies (localy).
+deps: $(GOTESTSUM) $(TPARSE) ## Checks for Global Development Dependencies.
+deps:
+ @echo "Required Tools Are Available"
+
+TESTS_ARGS := --format testname --jsonfile gotestsum.json.out
+TESTS_ARGS += --max-fails 2
+TESTS_ARGS += -- ./...
+TESTS_ARGS += -test.parallel 2
+TESTS_ARGS += -test.count 1
+TESTS_ARGS += -test.failfast
+TESTS_ARGS += -test.coverprofile coverage.out
+TESTS_ARGS += -test.timeout 60s
+TESTS_ARGS += -race
+run-tests: $(GOTESTSUM)
+ @ gotestsum $(TESTS_ARGS) -short
+
+test: run-tests $(TPARSE) ## Run Tests & parse details
+ @cat gotestsum.json.out | $(TPARSE) -all -notests
+
+
+lint: $(GOLANGCI) ## Runs golangci-lint with predefined configuration
+ @echo "Applying linter"
+ golangci-lint version
+ golangci-lint run -c .golangci.yaml ./...
+
+.PHONY: lint lint-prepare clean build unittest \ No newline at end of file