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
9d343fb7
Commit
9d343fb7
authored
4 years ago
by
邹毅贤
Browse files
Options
Downloads
Patches
Plain Diff
add makefiel and ignore
parent
a6dd23f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
Makefile
+11
-7
11 additions, 7 deletions
Makefile
with
13 additions
and
7 deletions
.gitignore
+
2
−
0
View file @
9d343fb7
...
...
@@ -36,3 +36,5 @@ config_center/apollo/mockDubbog.properties.json
# vim stuff
*~
.*.sw?
/license-header-checker-linux/
/license-header-checker-linux.zip
This diff is collapsed.
Click to expand it.
Makefile
+
11
−
7
View file @
9d343fb7
...
...
@@ -19,6 +19,7 @@ VERSION ?= latest
GO
=
go
GO_PATH
=
$$($(
GO
)
env
GOPATH
)
GO_OS
=
$$($(
GO
)
env
GOOS
)
GO_BUILD
=
$(
GO
)
build
GO_GET
=
$(
GO
)
get
GO_TEST
=
$(
GO
)
test
...
...
@@ -26,7 +27,8 @@ GO_BUILD_FLAGS = -v
GO_BUILD_LDFLAGS
=
-X
main.version
=
$(
VERSION
)
GO_LICENSE_CHECKER
=
$(
GO_PATH
)
/bin/license-header-checker
LICENSE_DIR
=
/tmp/tools/license
GO_LICENSE_CHECKER_DIR
=
license-header-checker-
$(
GO_OS
)
LICENSE_DIR
=
/tmp/tools/license/license.txt
PLATFORMS
:=
windows linux darwin
os
=
$(
word 1,
$@
)
...
...
@@ -35,9 +37,11 @@ ARCH = amd64
SHELL
=
/bin/bash
prepare
:
$(
GO_LICENSE_CHECKER
)
-version
||
GO111MODULE
=
off
$(
GO_GET
)
-u
github.com/lsm-dev/license-header-checker
wget
-P
$(
LICENSE_DIR
)
https://github.com/dubbogo/resources/raw/master/tools/license/license.txt
./before_ut.sh
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
#./before_ut.sh
.PHONE
:
test
test
:
clean lint
...
...
@@ -47,12 +51,12 @@ deps: prepare
$(
GO_GET
)
-v
-t
-d
./...
.PHONY
:
license
license
:
clean
tools
$(
GO_LICENSE_CHECKER
)
-v
-a
-r
-i
vendor
$(
LICENSE_DIR
)
/license.txt
.
go
&&
[[
-z
`
git status
-s
`
]]
license
:
clean
prepare
$(
GO_LICENSE_CHECKER
)
-v
-a
-r
-i
vendor
$(
LICENSE_DIR
)
.
go
&&
[[
-z
`
git status
-s
`
]]
.PHONY
:
verify
verify
:
clean license lint test
.PHONY
:
clean
clean
:
tools
clean
:
prepare
-
rm
-rf
coverage.txt
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