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
6f571bde
Commit
6f571bde
authored
Aug 21, 2019
by
harrylee
Committed by
vipwzw
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify scripts for CI
parent
eb14177d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
Jenkinsfile
Jenkinsfile
+2
-0
Jenkinsfile-gitlab
Jenkinsfile-gitlab
+1
-0
build.sh
build/autotest/build.sh
+4
-2
assettransfer_test.go
plugin/dapp/paracross/executor/assettransfer_test.go
+1
-1
mpt_test.go
plugin/store/mpt/mpt_test.go
+3
-3
No files found.
Jenkinsfile
View file @
6f571bde
...
...
@@ -4,6 +4,7 @@ pipeline {
environment
{
GOPATH
=
"${WORKSPACE}"
GO111MODULE
=
"on"
PROJ_DIR
=
"${WORKSPACE}/src/github.com/33cn/plugin"
}
...
...
@@ -21,6 +22,7 @@ pipeline {
steps
{
dir
(
"${PROJ_DIR}"
){
gitlabCommitStatus
(
name:
'deploy'
){
sh
'go version'
sh
'make build_ci'
sh
"cd build && mkdir ${env.BUILD_NUMBER} && cp ci/* ${env.BUILD_NUMBER} -r && ./docker-compose-pre.sh modify && cp chain33* Dockerfile* docker* *.sh ${env.BUILD_NUMBER}/ && cd ${env.BUILD_NUMBER}/ && ./docker-compose-pre.sh run ${env.BUILD_NUMBER} all "
}
...
...
Jenkinsfile-gitlab
View file @
6f571bde
...
...
@@ -4,6 +4,7 @@ pipeline {
environment {
GOPATH = "${WORKSPACE}"
GO111MODULE = "on"
PROJ_DIR = "${WORKSPACE}/src/github.com/33cn/plugin"
}
...
...
build/autotest/build.sh
View file @
6f571bde
...
...
@@ -5,12 +5,14 @@ set -o pipefail
#set -o verbose
#set -o xtrace
CHAIN33_PATH
=
$1
sedfix
=
""
if
[
"
$(
uname
)
"
==
"Darwin"
]
;
then
sedfix
=
".bak"
fi
AutoTestMain
=
"
../../vendor/github.com/33cn/chain33
/cmd/autotest/main.go"
echo
"=====chain33_path:
${
CHAIN33_PATH
}
========"
AutoTestMain
=
"
${
CHAIN33_PATH
}
/cmd/autotest/main.go"
ImportPlugin
=
'"github.com/33cn/plugin/plugin"'
function
build_auto_test
()
{
...
...
plugin/dapp/paracross/executor/assettransfer_test.go
View file @
6f571bde
...
...
@@ -25,7 +25,7 @@ import (
// para-exec addr on para 16zsMh7mvNDKPG6E9NVrPhw6zL93gWsTpR
var
(
Amount
=
int64
(
1
*
types
.
Coin
)
Amount
=
types
.
Coin
)
func
para_init
(
title
string
)
{
...
...
plugin/store/mpt/mpt_test.go
View file @
6f571bde
...
...
@@ -266,7 +266,7 @@ func BenchmarkMemSet(b *testing.B) {
key
=
GetRandomString
(
MaxKeylenth
)
value
=
fmt
.
Sprintf
(
"v%d"
,
i
)
keys
=
append
(
keys
,
[]
byte
(
key
))
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
[]
byte
(
string
(
key
)),
Value
:
[]
byte
(
string
(
value
)
)})
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
[]
byte
(
key
),
Value
:
[]
byte
(
value
)})
}
datas
:=
&
types
.
StoreSet
{
StateHash
:
drivers
.
EmptyRoot
[
:
],
...
...
@@ -298,8 +298,8 @@ func BenchmarkCommit(b *testing.B) {
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
key
=
GetRandomString
(
MaxKeylenth
)
value
=
fmt
.
Sprintf
(
"v%d"
,
i
)
keys
=
append
(
keys
,
[]
byte
(
string
(
key
)
))
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
[]
byte
(
string
(
key
)),
Value
:
[]
byte
(
string
(
value
)
)})
keys
=
append
(
keys
,
[]
byte
(
key
))
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
[]
byte
(
key
),
Value
:
[]
byte
(
value
)})
}
datas
:=
&
types
.
StoreSet
{
StateHash
:
drivers
.
EmptyRoot
[
:
],
...
...
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