Skip to content
Snippets Groups Projects
Commit 451d0b83 authored by 邹毅贤's avatar 邹毅贤
Browse files

add makefiel and ignore

parent 9d343fb7
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,8 @@ ARCH = amd64
SHELL = /bin/bash
prepare:
wget https://github.com/lsm-dev/license-header-checker/releases/download/v1.1.0/$(GO_LICENSE_CHECKER_DIR).zip -O $(GO_LICENSE_CHECKER_DIR).zip
unzip -o $(GO_LICENSE_CHECKER_DIR).zip
cp $(GO_LICENSE_CHECKER_DIR)/64bits/license-header-checker $(GO_PATH)/bin/
wget -O $(LICENSE_DIR) https://github.com/dubbogo/resources/raw/master/tools/license/license.txt
$(GO_LICENSE_CHECKER) -version || (wget https://github.com/lsm-dev/license-header-checker/releases/download/v1.1.0/$(GO_LICENSE_CHECKER_DIR).zip -O $(GO_LICENSE_CHECKER_DIR).zip && unzip -o $(GO_LICENSE_CHECKER_DIR).zip && cp $(GO_LICENSE_CHECKER_DIR)/64bits/license-header-checker $(GO_PATH)/bin/)
ls $(LICENSE_DIR) || wget -O $(LICENSE_DIR) https://github.com/dubbogo/resources/raw/master/tools/license/license.txt
#./before_ut.sh
.PHONE: test
......@@ -52,7 +50,7 @@ deps: prepare
.PHONY: license
license: clean prepare
$(GO_LICENSE_CHECKER) -v -a -r -i vendor $(LICENSE_DIR) . go && [[ -z `git status -s` ]]
$(GO_LICENSE_CHECKER) -v -a -r -i vendor $(LICENSE_DIR) . go && [[ -z `git status -s` ]]
.PHONY: verify
verify: clean license lint test
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment