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.

31 lines
486B

  1. image: golang:1.11
  2. cache:
  3. paths:
  4. - /apt-cache
  5. - /go/src/github.com
  6. - /go/src/golang.org
  7. - /go/src/google.golang.org
  8. - /go/src/gopkg.in
  9. stages:
  10. - test
  11. - build
  12. before_script:
  13. - mkdir /go/src/steem-block-db
  14. - cp $CI_PROJECT_DIR/*.go /go/src/steem-block-db
  15. - cd /go/src/steem-block-db
  16. - GOPATH=/go go get
  17. #unit_tests:
  18. # stage: test
  19. # script:
  20. # - make test
  21. build:
  22. stage: build
  23. script:
  24. - cd /go/src/steem-block-db
  25. - GOPATH=/go go build