2 Star 0 Fork 0

GoLife/gryffin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
Albert Yu 提交于 2015-09-22 10:09 . first commit
# This Makefile is adopted from https://github.com/hashicorp/consul/blob/master/Makefile
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...)
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
-nilfunc -rangeloops -shift -structtags -unsafeptr
#-printf
all: deps format
cov:
gocov test | gocov-html > /tmp/coverage.html
open /tmp/coverage.html
deps:
go get -d -v ./... $(DEPS)
updatedeps: deps
go get -d -f -u ./... $(DEPS)
build: test
cd cmd/gryffin-standalone; go install
test: deps
go test ./...
@$(MAKE) vet
test-mono:
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8081"
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8082/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit"
test-integration:
INTEGRATION=1 go test ./...
test-cover: deps
go test --cover ./...
format: deps
@go fmt $(PACKAGES)
vet:
@go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \
go get golang.org/x/tools/cmd/vet; \
fi
@go tool vet $(VETARGS) . ; if [ $$? -eq 1 ]; then \
echo ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for reviewal."; \
fi
.PHONY: all cov deps build test vet web web-push
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xgadmin/gryffin.git
git@gitee.com:xgadmin/gryffin.git
xgadmin
gryffin
gryffin
master

搜索帮助