Add ci
This commit is contained in:
parent
df7f53e7d6
commit
c43df78d55
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
steem-block-db
|
30
.gitlab-ci.yml
Normal file
30
.gitlab-ci.yml
Normal file
@ -0,0 +1,30 @@
|
||||
image: golang:1.11
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- /apt-cache
|
||||
- /go/src/github.com
|
||||
- /go/src/golang.org
|
||||
- /go/src/google.golang.org
|
||||
- /go/src/gopkg.in
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- mkdir /go/src/steem-block-db
|
||||
- cp $CI_PROJECT_DIR/*.go /go/src/steem-block-db
|
||||
- cd /go/src/steem-block-db
|
||||
- GOPATH=/go go get
|
||||
|
||||
#unit_tests:
|
||||
# stage: test
|
||||
# script:
|
||||
# - make test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- cd /go/src/steem-block-db
|
||||
- GOPATH=/go go build
|
@ -115,7 +115,7 @@ func (kv *BadgerKVStore) Put(key *string, value *string) error {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
err = txn.Commit(nil)
|
||||
err = txn.Commit()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user