Micro & pluggable web framework for Go
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.

111 lines
1.5KB

  1. ---
  2. kind: pipeline
  3. name: go110
  4. platform:
  5. os: linux
  6. arch: amd64
  7. clone:
  8. disable: true
  9. workspace:
  10. base: /go
  11. path: src/gitea.com/lunny/tango
  12. steps:
  13. - name: git
  14. pull: default
  15. image: plugins/git:next
  16. settings:
  17. depth: 50
  18. tags: true
  19. - name: test
  20. pull: default
  21. image: golang:1.10
  22. commands:
  23. - go get -t -d -v ./...
  24. - go build -v
  25. - go vet ./...
  26. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  27. when:
  28. event:
  29. - push
  30. - pull_request
  31. ---
  32. kind: pipeline
  33. name: go111
  34. platform:
  35. os: linux
  36. arch: amd64
  37. clone:
  38. disable: true
  39. workspace:
  40. base: /go
  41. path: src/tango111
  42. steps:
  43. - name: git
  44. pull: default
  45. image: plugins/git:next
  46. settings:
  47. depth: 50
  48. tags: true
  49. - name: test
  50. pull: default
  51. image: golang:1.11
  52. environment:
  53. GO111MODULE: on
  54. GOPROXY: https://goproxy.cn
  55. commands:
  56. - go build -v
  57. - go vet ./...
  58. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  59. when:
  60. event:
  61. - push
  62. - pull_request
  63. ---
  64. kind: pipeline
  65. name: go112
  66. platform:
  67. os: linux
  68. arch: amd64
  69. clone:
  70. disable: true
  71. workspace:
  72. base: /go
  73. path: src/tango112
  74. steps:
  75. - name: git
  76. pull: default
  77. image: plugins/git:next
  78. settings:
  79. depth: 50
  80. tags: true
  81. - name: test
  82. pull: default
  83. image: golang:1.12
  84. environment:
  85. GO111MODULE: on
  86. GOPROXY: https://goproxy.cn
  87. commands:
  88. - go build -v
  89. - go vet ./...
  90. - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  91. when:
  92. event:
  93. - push
  94. - pull_request