本站源代码
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.

90 lines
1.5KB

  1. ---
  2. kind: pipeline
  3. name: go1.10
  4. workspace:
  5. base: /go
  6. path: src/xorm.io/builder
  7. steps:
  8. - name: test
  9. pull: default
  10. image: golang:1.10
  11. commands:
  12. - go get -u golang.org/x/lint/golint
  13. - go get -u github.com/stretchr/testify/assert
  14. - go get -u github.com/go-xorm/sqlfiddle
  15. - golint ./...
  16. - go vet
  17. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  18. when:
  19. event:
  20. - push
  21. - tag
  22. - pull_request
  23. ---
  24. kind: pipeline
  25. name: go1.11
  26. steps:
  27. - name: test
  28. pull: default
  29. image: golang:1.11
  30. commands:
  31. - go get -u golang.org/x/lint/golint
  32. - golint ./...
  33. - go vet
  34. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  35. environment:
  36. GOPROXY: https://goproxy.cn
  37. GO111MODULE: "on"
  38. when:
  39. event:
  40. - push
  41. - tag
  42. - pull_request
  43. ---
  44. kind: pipeline
  45. name: go1.12
  46. steps:
  47. - name: test
  48. pull: default
  49. image: golang:1.12
  50. commands:
  51. - go get -u golang.org/x/lint/golint
  52. - golint ./...
  53. - go vet
  54. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  55. environment:
  56. GOPROXY: https://goproxy.cn
  57. GO111MODULE: "on"
  58. when:
  59. event:
  60. - push
  61. - tag
  62. - pull_request
  63. ---
  64. kind: pipeline
  65. name: go1.13
  66. steps:
  67. - name: test
  68. pull: default
  69. image: golang:1.13
  70. commands:
  71. - go get -u golang.org/x/lint/golint
  72. - golint ./...
  73. - go vet
  74. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  75. environment:
  76. GOPROXY: https://goproxy.cn
  77. GO111MODULE: "on"
  78. when:
  79. event:
  80. - push
  81. - tag
  82. - pull_request
上海开阖软件有限公司 沪ICP备12045867号-1