aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/ettle/strcase/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/ettle/strcase/Makefile')
-rw-r--r--vendor/github.com/ettle/strcase/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/ettle/strcase/Makefile b/vendor/github.com/ettle/strcase/Makefile
new file mode 100644
index 000000000..462f8b473
--- /dev/null
+++ b/vendor/github.com/ettle/strcase/Makefile
@@ -0,0 +1,16 @@
+.PHONY: benchmark docs lint test
+
+docs:
+ which godoc2ghmd || ( go get github.com/DevotedHealth/godoc2ghmd && go mod tidy )
+ godoc2ghmd -template .readme.tmpl github.com/ettle/strcase > README.md
+
+test:
+ go test -cover ./...
+
+lint:
+ which golangci-lint || ( go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0 && go mod tidy )
+ golangci-lint run
+ golangci-lint run benchmark/*.go
+
+benchmark:
+ cd benchmark && go test -bench=. -test.benchmem && go mod tidy