Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
0ccb9af1
Commit
0ccb9af1
authored
4 years ago
by
邹毅贤
Browse files
Options
Downloads
Patches
Plain Diff
modify make file
parent
8d088241
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+20
-7
20 additions, 7 deletions
Makefile
with
20 additions
and
7 deletions
Makefile
+
20
−
7
View file @
0ccb9af1
...
...
@@ -33,19 +33,31 @@ GO_LICENSE_CHECKER_DIR = license-header-checker-$(GO_OS)
GO_LICENSE_CHECKER
=
$(
GO_PATH
)
/bin/license-header-checker
LICENSE_DIR
=
/tmp/tools/license
PLATFORMS
:=
windows linux darwin
os
=
$(
word 1,
$@
)
ARCH
=
amd64
ZK_TEST_LIST
=
registry/zookeeper cluster/router/chain cluster/router/condition cluster/router/tag metadata/report/zookeeper
ZK_JAR_NAME
=
zookeeper-3.4.9-fatjar.jar
ZK_FATJAR_BASE
=
/zookeeper-4unittest/contrib/fatjar
ZK_JAR_PATH
=
remoting/zookeeper
$(
ZK_FATJAR_BASE
)
ZK_JAR
=
$(
ZK_JAR_PATH
)
/
$(
ZK_JAR_NAME
)
SHELL
=
/bin/bash
prepare
:
prepare
Lic
:
$(
GO_LICENSE_CHECKER
)
-version
||
(
wget https://github.com/lsm-dev/license-header-checker/releases/download/v1.2.0/
$(
GO_LICENSE_CHECKER_DIR
)
.zip
-O
$(
GO_LICENSE_CHECKER_DIR
)
.zip
&&
unzip
-o
$(
GO_LICENSE_CHECKER_DIR
)
.zip
&&
mkdir
-p
$(
GO_PATH
)
/bin/
&&
cp
$(
GO_LICENSE_CHECKER_DIR
)
/64bit/license-header-checker
$(
GO_PATH
)
/bin/
)
ls
/tmp/tools/license/license.txt
||
wget
-P
$(
LICENSE_DIR
)
https://github.com/dubbogo/resources/raw/master/tools/license/license.txt
#./before_ut.sh
prepareZk
:
ls
$(
ZK_JAR
)
||
(
mkdir
-p
$(
ZK_JAR_PATH
)
&&
wget
-P
$(
ZK_JAR_PATH
)
https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/
${
ZK_JAR_NAME
}
)
@
for
i
in
$(
ZK_TEST_LIST
);
do
\
mkdir
-p
$$
i
$(
ZK_FATJAR_BASE
);
\
cp
${
ZK_JAR
}
$$
i
$(
ZK_FATJAR_BASE
);
\
done
prepare
:
prepareZk prepareLic
.PHONE
:
test
test
:
clean
lint
test
:
clean
$(
GO_TEST
)
./...
-coverprofile
=
coverage.txt
-covermode
=
atomic
deps
:
prepare
...
...
@@ -56,8 +68,9 @@ license: clean prepare
$(
GO_LICENSE_CHECKER
)
-v
-a
-r
-i
vendor
$(
LICENSE_DIR
)
/license.txt
.
go
&&
[[
-z
`
git status
-s
`
]]
.PHONY
:
verify
verify
:
clean license
lint
test
verify
:
clean license test
.PHONY
:
clean
clean
:
prepare
-
rm
-rf
coverage.txt
rm
-rf
coverage.txt
rm
-rf
license-header-checker
*
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment