2 Star 0 Fork 0

mirrors_TIBCOSoftware/dovetail-cli

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
torresashjian 提交于 2020-07-09 10:27 +08:00 . Add fmt and vet
SCRIPTS_PATH := scripts
TEST_SCRIPTS_PATH := test/scripts
PROJECT_FLOGO_CLI_VERSION := v0.9.1-rc.2
PROJECT_FLOGO_CORE_VERSION := v0.9.3
PROJECT_FLOGO_FLOW_VERSION := v0.9.3
.PHONY: all
all: default build
default: fmt vet
# Capture output and force failure when there is non-empty output
fmt:
@echo gofmt -l .
@OUTPUT=`gofmt -l . 2>&1`; \
if [ "$$OUTPUT" ]; then \
echo "gofmt must be run on the following files:"; \
echo "$$OUTPUT"; \
exit 1; \
fi
vet:
go vet .
lint:
@echo golint ./...
@OUTPUT=`command -v golint >/dev/null 2>&1 && golint ./... 2>&1`; \
if [ "$$OUTPUT" ]; then \
echo "golint errors:"; \
echo "$$OUTPUT"; \
exit 1; \
fi
.PHONY: depend
depend:
$(SCRIPTS_PATH)/dependencies.sh -f
.PHONY: depend-noforce
depend-noforce:
@$(SCRIPTS_PATH)/dependencies.sh
.PHONY: install
install:
go install github.com/TIBCOSoftware/dovetail-cli/cmd/dovetail
chmod -R 755 ${GOPATH}/pkg/mod/github.com/project-flogo
cp flogo-patch/cli/util/contrib.go ${GOPATH}/pkg/mod/github.com/project-flogo/cli@$(PROJECT_FLOGO_CLI_VERSION)/util/
cp flogo-patch/core/support/ref.go ${GOPATH}/pkg/mod/github.com/project-flogo/core@$(PROJECT_FLOGO_CORE_VERSION)/support/
cp flogo-patch/flow/instance/util2.go ${GOPATH}/pkg/mod/github.com/project-flogo/flow@$(PROJECT_FLOGO_FLOW_VERSION)/instance/
go install github.com/TIBCOSoftware/dovetail-cli/cmd/dovetail
.PHONY: build
build:
go build -o dovetail github.com/TIBCOSoftware/dovetail-cli
.PHONY: buildtype
buildtype: install
@$(SCRIPTS_PATH)/buildtype.sh
.PHONY: test_all
test_all: dovetail-tests hyperledger-fabric-tests corda-tests
.PHONY: dovetail-tests
dovetail-tests:
@$(TEST_SCRIPTS_PATH)/dovetail.sh
.PHONY: hyperledger-fabric-tests
hyperledger-fabric-tests:
@$(TEST_SCRIPTS_PATH)/hyperledger-fabric.sh
.PHONY: corda-tests
corda-tests:
@$(TEST_SCRIPTS_PATH)/corda.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_TIBCOSoftware/dovetail-cli.git
git@gitee.com:mirrors_TIBCOSoftware/dovetail-cli.git
mirrors_TIBCOSoftware
dovetail-cli
dovetail-cli
master

搜索帮助