-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update strcase docs, test harness, and other bit rot (#10)
* Update docs * Remove testify as dependency * Update test harness * update benchmark dependencies * Update stdlib benchmark * Don't lint benchmark code
- Loading branch information
1 parent
26d5b1a
commit c8ac0fd
Showing
20 changed files
with
353 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
.PHONY: benchmark docs lint test | ||
|
||
docs: | ||
which godoc2ghmd || ( go get github.com/DevotedHealth/godoc2ghmd && go mod tidy ) | ||
which godoc2ghmd || go get github.com/DevotedHealth/godoc2ghmd | ||
godoc2ghmd -template .readme.tmpl github.com/ettle/strcase > README.md | ||
go mod tidy | ||
|
||
test: | ||
go test -cover ./... | ||
|
||
lint: | ||
which golangci-lint || ( go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0 && go mod tidy ) | ||
which golangci-lint || go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 | ||
golangci-lint run | ||
golangci-lint run benchmark/*.go | ||
go mod tidy | ||
|
||
benchmark: | ||
cd benchmark && go test -bench=. -test.benchmem && go mod tidy | ||
cd benchmark && go test -bench=. -test.benchmem | ||
go mod tidy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.