File tree Expand file tree Collapse file tree 3 files changed +13
-32
lines changed
Expand file tree Collapse file tree 3 files changed +13
-32
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ variables:
1313 CACHE_DIR : /CovenantSQL_bins
1414 PIPELINE_CACHE : $CACHE_DIR/$CI_PIPELINE_IID
1515 BIN_CACHE : $CACHE_DIR/$CI_PIPELINE_IID/bin
16- PREV_VERSION : v0.4 .0
16+ PREV_VERSION : v0.5 .0
1717 # gitlabci bins: 192.168.2.100:/srv/gitlab-runner/config/CovenantSQL_bins
1818
1919before_script :
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ type BPInfo struct {
6969 NodeID proto.NodeID `yaml:"NodeID"`
7070 // RawNodeID
7171 RawNodeID proto.RawNodeID `yaml:"-"`
72- // Nonce is the nonce, SEE: cmd/cql-utils for more
72+ // Nonce is the nonce, SEE: cmd/cql for more
7373 Nonce cpuminer.Uint256 `yaml:"Nonce"`
7474 // ChainFileName is the chain db's name
7575 ChainFileName string `yaml:"ChainFileName"`
Original file line number Diff line number Diff line change @@ -49,40 +49,21 @@ nohup ${MINERBIN} -config node_miner_2/config.yaml >${LOGS_DIR}/miner2.log 2>&1
4949# wait miner start
5050sleep 20
5151
52- # TODO(laodouya) remove v0.4.0 code after v0.5.0 release
53- if [[ $CLIENTBIN =~ " v0.4.0" ]]; then
54- ${CLIENTBIN} -config node_c/config.yaml -get-balance
52+ ${CLIENTBIN} wallet -config node_c/config.yaml -balance all -no-password
5553
56- ${CLIENTBIN} -config node_c/config.yaml -wait-tx-confirm -create ' {"node":2}' | tee dsn.txt
54+ ${CLIENTBIN} create -config node_c/config.yaml -wait-tx-confirm -no-password ' {"node":2}' | tee dsn.txt
5755
58- # get dsn
59- dsn=$( cat dsn.txt)
60- if [ -z " $dsn " ]; then
61- exit 1
62- fi
63-
64- ${CLIENTBIN} -config ${PROJECT_DIR} /test/integration/node_c/v0.4.0.yaml -dsn ${dsn} \
65- -command ' create table test_for_new_account(column1 int);'
66-
67- ${CLIENTBIN} -config ${PROJECT_DIR} /test/integration/node_c/v0.4.0.yaml -dsn ${dsn} \
68- -command ' show tables;' | tee result.log
69- else
70- ${CLIENTBIN} wallet -config node_c/config.yaml -balance all -no-password
71-
72- ${CLIENTBIN} create -config node_c/config.yaml -wait-tx-confirm -no-password ' {"node":2}' | tee dsn.txt
73-
74- # get dsn
75- dsn=$( cat dsn.txt)
76- if [ -z " $dsn " ]; then
77- exit 1
78- fi
56+ # get dsn
57+ dsn=$( cat dsn.txt)
58+ if [ -z " $dsn " ]; then
59+ exit 1
60+ fi
7961
80- ${CLIENTBIN} console -config ${PROJECT_DIR} /test/integration/node_c/config.yaml -dsn ${dsn} \
81- -command ' create table test_for_new_account(column1 int);' -no-password
62+ ${CLIENTBIN} console -config ${PROJECT_DIR} /test/integration/node_c/config.yaml -dsn ${dsn} \
63+ -command ' create table test_for_new_account(column1 int);' -no-password
8264
83- ${CLIENTBIN} console -config ${PROJECT_DIR} /test/integration/node_c/config.yaml -dsn ${dsn} \
84- -command ' show tables;' -no-password | tee result.log
85- fi
65+ ${CLIENTBIN} console -config ${PROJECT_DIR} /test/integration/node_c/config.yaml -dsn ${dsn} \
66+ -command ' show tables;' -no-password | tee result.log
8667
8768grep " 1 row" result.log
8869
You can’t perform that action at this time.
0 commit comments