Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

.drone.yml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. workspace:
  2. base: /srv/app
  3. path: src/code.gitea.io/gitea
  4. pipeline:
  5. clone:
  6. image: plugins/git
  7. tags: true
  8. test:
  9. image: webhippie/golang:edge
  10. pull: true
  11. environment:
  12. TAGS: bindata sqlite
  13. GOPATH: /srv/app
  14. commands:
  15. - apk -U add openssh-client
  16. - make clean
  17. - make generate
  18. - make vet
  19. - make lint
  20. - make test-vendor
  21. - make test
  22. - make build
  23. when:
  24. event: [ push, tag, pull_request ]
  25. test-sqlite:
  26. image: webhippie/golang:edge
  27. pull: true
  28. environment:
  29. TAGS: bindata
  30. GOPATH: /srv/app
  31. commands:
  32. - make test-sqlite
  33. when:
  34. event: [ push, tag, pull_request ]
  35. test-mysql:
  36. image: webhippie/golang:edge
  37. pull: true
  38. environment:
  39. TAGS: bindata
  40. GOPATH: /srv/app
  41. commands:
  42. - echo make test-mysql # Not ready yet
  43. when:
  44. event: [ push, tag, pull_request ]
  45. test-pgsql:
  46. image: webhippie/golang:edge
  47. pull: true
  48. environment:
  49. TAGS: bindata
  50. GOPATH: /srv/app
  51. commands:
  52. - echo make test-pqsql # Not ready yet
  53. when:
  54. event: [ push, tag, pull_request ]
  55. static:
  56. image: karalabe/xgo-latest:latest
  57. pull: true
  58. environment:
  59. TAGS: bindata sqlite
  60. GOPATH: /srv/app
  61. commands:
  62. - make release
  63. when:
  64. event: [ push, tag, pull_request ]
  65. coverage:
  66. image: plugins/coverage
  67. server: https://coverage.gitea.io
  68. when:
  69. event: [ push, tag, pull_request ]
  70. docker:
  71. image: plugins/docker
  72. repo: gitea/gitea
  73. tags: [ '${DRONE_TAG##v}' ]
  74. when:
  75. event: [ tag ]
  76. branch: [ refs/tags/* ]
  77. docker:
  78. image: plugins/docker
  79. repo: gitea/gitea
  80. tags: [ '${DRONE_BRANCH##release/v}' ]
  81. when:
  82. event: [ push ]
  83. branch: [ release/* ]
  84. docker:
  85. image: plugins/docker
  86. repo: gitea/gitea
  87. tags: [ 'latest' ]
  88. when:
  89. event: [ push ]
  90. branch: [ master ]
  91. release:
  92. image: plugins/s3
  93. path_style: true
  94. strip_prefix: dist/release/
  95. source: dist/release/*
  96. target: /gitea/${DRONE_TAG##v}
  97. when:
  98. event: [ tag ]
  99. branch: [ refs/tags/* ]
  100. release:
  101. image: plugins/s3
  102. path_style: true
  103. strip_prefix: dist/release/
  104. source: dist/release/*
  105. target: /gitea/${DRONE_BRANCH##release/v}
  106. when:
  107. event: [ push ]
  108. branch: [ release/* ]
  109. release:
  110. image: plugins/s3
  111. path_style: true
  112. strip_prefix: dist/release/
  113. source: dist/release/*
  114. target: /gitea/master
  115. when:
  116. event: [ push ]
  117. branch: [ master ]
  118. github:
  119. image: plugins/github-release
  120. files:
  121. - dist/release/*
  122. when:
  123. event: [ tag ]
  124. branch: [ refs/tags/* ]
  125. gitter:
  126. image: plugins/gitter
  127. services:
  128. mysql:
  129. image: mysql:5.7
  130. environment:
  131. - MYSQL_DATABASE=test
  132. - MYSQL_ALLOW_EMPTY_PASSWORD=yes
  133. when:
  134. event: [ push, tag, pull_request ]
  135. pgsql:
  136. image: postgres:9.5
  137. environment:
  138. - POSTGRES_DB=test
  139. when:
  140. event: [ push, tag, pull_request ]