Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
a58294f8
Commit
a58294f8
authored
Sep 06, 2019
by
harrylee
Committed by
vipwzw
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Makefile
parent
97f19751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Makefile
Makefile
+4
-4
No files found.
Makefile
View file @
a58294f8
...
@@ -10,7 +10,7 @@ SRC_CLI := github.com/33cn/plugin/cli
...
@@ -10,7 +10,7 @@ SRC_CLI := github.com/33cn/plugin/cli
APP
:=
build/chain33
APP
:=
build/chain33
export
CHAIN33_PATH
=
$(
shell
go list
-f
{{
.Dir
}}
github.com/33cn/chain33
)
export
CHAIN33_PATH
=
$(
shell
go list
-f
{{
.Dir
}}
github.com/33cn/chain33
)
export
PLUGIN_PATH
=
$(
shell
go list
-f
{{
.Dir
}}
github.com/33cn/plugin
)
export
PLUGIN_PATH
=
$(
shell
go list
-f
{{
.Dir
}}
github.com/33cn/plugin
)
BUILD_FLAGS
=
-ldflags
"-X
${
CHAIN33_PATH
}
/common/version.GitCommit=
`
git rev-parse
--short
=
8 HEAD
`
"
BUILD_FLAGS
=
-ldflags
"-X
github.com/33cn/chain33
/common/version.GitCommit=
`
git rev-parse
--short
=
8 HEAD
`
"
LDFLAGS
:=
-ldflags
"-w -s"
LDFLAGS
:=
-ldflags
"-w -s"
PKG_LIST_VET
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
plugin/dapp/evm/executor/vm/common/crypto/bn256
`
PKG_LIST_VET
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
plugin/dapp/evm/executor/vm/common/crypto/bn256
`
PKG_LIST
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"pbft"
`
PKG_LIST
:=
`
go list ./... |
grep
-v
"vendor"
|
grep
-v
"chain33/test"
|
grep
-v
"mocks"
|
grep
-v
"pbft"
`
...
@@ -61,11 +61,11 @@ autotest_tick: autotest ## run with ticket mining
...
@@ -61,11 +61,11 @@ autotest_tick: autotest ## run with ticket mining
&&
cd
build/autotest
&&
chmod
-R
755 gitlabci
&&
chmod
755
*
.sh
&&
bash ./copy-autotest.sh gitlabci
\
&&
cd
build/autotest
&&
chmod
-R
755 gitlabci
&&
chmod
755
*
.sh
&&
bash ./copy-autotest.sh gitlabci
\
&&
cd
gitlabci
&&
bash ./gitlab-ci-autotest.sh build
&&
cd
../../../
&&
cd
gitlabci
&&
bash ./gitlab-ci-autotest.sh build
&&
cd
../../../
update
:
update
:
##
version 可以是git tag打的具体版本号
,
也可以是commit hash
,
什么都不填的情况下默认从master分支拉取最新版本
@
if
[
-n
"
$(version)
"
]
;
then
\
@
if
[
-n
"
$(version)
"
]
;
then
\
sed
-i
's/github.com\/33cn\/chain33 .*/github.com\/33cn\/chain33 ${version}/g'
go.mod
;
\
go get github.com/33cn/chain33@
${
version
}
;
\
else
\
else
\
sed
-i
's/github.com\/33cn\/chain33 .*/github.com\/33cn\/chain33 latest/g'
go.mod
;
fi
go get github.com/33cn/chain33@master
;
fi
@
go mod tidy
@
go mod tidy
dep
:
dep
:
@
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1
@
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment