add sh and zsh targets to make file to conveniently get at the same environment as make; moved cover.out to $/tmp, updated .hgignore to match
This commit is contained in:
1 parent
a7ca3de99e
commit
5fb78a041e
2 files changed
+11
-3
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
# derived from: http://zduck.com/2014/go-project-structure-and-dependencies/
|
# derived from: http://zduck.com/2014/go-project-structure-and-dependencies/
|
||||||
|
|
||||||
# build targets (which aren't files)
|
# build targets (which aren't files)
|
||||||
.PHONY: build fmt lint vet test autotest cover doc run clean env stats vendor
|
.PHONY: build fmt lint vet test autotest cover doc run clean env sh zsh stats vendor
|
||||||
|
|
||||||
# configuration
|
# configuration
|
||||||
APPNAME := docrawler
|
APPNAME := docrawler
|
||||||
@@ -41,7 +41,9 @@ autotest:
|
|||||||
xargs -n1 -I{} ${SHELL} -c 'echo ; date ; echo ----------------------------; go test ./src/... | ./util/testfilter.sh'
|
xargs -n1 -I{} ${SHELL} -c 'echo ; date ; echo ----------------------------; go test ./src/... | ./util/testfilter.sh'
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
go test -coverprofile cover.out ./src/... && go tool cover -html cover.out
|
mkdir -p tmp
|
||||||
|
go test -coverprofile tmp/cover.out ./src/...
|
||||||
|
go tool cover -html tmp/cover.out
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
godoc -http=:6060 -index
|
godoc -http=:6060 -index
|
||||||
@@ -55,6 +57,12 @@ clean:
|
|||||||
env:
|
env:
|
||||||
go env
|
go env
|
||||||
|
|
||||||
|
sh:
|
||||||
|
sh
|
||||||
|
|
||||||
|
zsh:
|
||||||
|
zsh
|
||||||
|
|
||||||
stats:
|
stats:
|
||||||
@echo ===============================================================================
|
@echo ===============================================================================
|
||||||
@echo Tests
|
@echo Tests
|
||||||
|
|||||||
Reference in new issue
Block a user