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.

36 lines
729 B

  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 ]