.drone.yml 588 B

1234567891011121314151617181920212223242526272829
  1. workspace:
  2. base: /go
  3. path: src/github.com/packethost/packngo
  4. pipeline:
  5. lint:
  6. image: golang:1.8
  7. commands:
  8. - go get -v -u github.com/alecthomas/gometalinter
  9. - gometalinter --install
  10. - go get -v ./...
  11. - |
  12. gometalinter --disable=gas ./... || :
  13. - |
  14. gometalinter --disable-all --enable=gas ./... || :
  15. - |
  16. gofmt -d . | (! grep '.') || ok=false
  17. - if ! $ok; then exit 1; fi
  18. build:
  19. image: golang:1.8
  20. commands:
  21. - go build -i -v ./...
  22. test:
  23. image: golang:1.8
  24. commands:
  25. - go test ./...