-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove xc and use make instead (#555)
- Loading branch information
1 parent
53fef6d
commit d2a0b1f
Showing
4 changed files
with
43 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.ONESHELL: | ||
.DEFAULT: help | ||
|
||
.PHONY: help | ||
help: | ||
@grep -E '^[a-z-]+:.*#' Makefile | \ | ||
sort | \ | ||
while read -r l; do printf "\033[1;32m$$(echo $$l | \ | ||
cut -d':' -f1)\033[00m:$$(echo $$l | cut -d'#' -f2-)\n"; \ | ||
done | ||
|
||
.PHONY: test | ||
test: # Run unit test suite | ||
go test -race -coverprofile=c.out ./... | ||
go tool cover -html=c.out -o=coverage.html | ||
|
||
.PHONY: lint | ||
lint: # Run linters | ||
goimports -w -local github.com/miniscruff/changie . | ||
golangci-lint run ./... | ||
|
||
.PHONY: gen | ||
gen: # Generate config and CLI docs | ||
go run main.go gen | ||
|
||
.PHONY: vhs-gen | ||
vhs-gen: # Generate VHS recording videos | ||
cd examples | ||
ls *.tape | xargs -n 1 vhs | ||
|
||
.PHONY: docs-serve | ||
docs-serve: gen # Serve documentation locally | ||
hugo serve -s docs |
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