You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
486 B
30 lines
486 B
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
|
|
|