.drone.yml 729 B

12345678910111213141516171819202122232425262728293031323334353637
  1. workspace:
  2. base: /go
  3. path: src/github.com/go-xorm/builder
  4. clone:
  5. git:
  6. image: plugins/git:next
  7. depth: 50
  8. tags: true
  9. matrix:
  10. GO_VERSION:
  11. - 1.8
  12. - 1.9
  13. - 1.10
  14. - 1.11
  15. pipeline:
  16. test:
  17. image: golang:${GO_VERSION}
  18. commands:
  19. - go get -u github.com/golang/lint/golint
  20. - go get -u github.com/stretchr/testify/assert
  21. - go get -u github.com/go-xorm/sqlfiddle
  22. - golint ./...
  23. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  24. when:
  25. event: [ push, tag, pull_request ]
  26. codecov:
  27. image: robertstettner/drone-codecov
  28. group: build
  29. secrets: [ codecov_token ]
  30. files:
  31. - coverage.txt
  32. when:
  33. event: [ push, pull_request ]