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

.drone.yml 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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-mysql:
  26. image: webhippie/golang:edge
  27. pull: true
  28. environment:
  29. TAGS: bindata
  30. GOPATH: /srv/app
  31. commands:
  32. - make test-mysql
  33. when:
  34. event: [ push, tag, pull_request ]
  35. test-pgsql:
  36. image: webhippie/golang:edge
  37. pull: true
  38. environment:
  39. TAGS: bindata
  40. GOPATH: /srv/app
  41. commands:
  42. - make test-pgsql
  43. when:
  44. event: [ push, tag, pull_request ]
  45. static:
  46. image: karalabe/xgo-latest:latest
  47. pull: true
  48. environment:
  49. TAGS: bindata sqlite
  50. GOPATH: /srv/app
  51. commands:
  52. - make release
  53. when:
  54. event: [ push, tag, pull_request ]
  55. coverage:
  56. image: plugins/coverage
  57. server: https://coverage.gitea.io
  58. when:
  59. event: [ push, tag, pull_request ]
  60. docker:
  61. image: plugins/docker
  62. repo: gitea/gitea
  63. tags: [ '${DRONE_TAG##v}' ]
  64. when:
  65. event: [ tag ]
  66. branch: [ refs/tags/* ]
  67. docker:
  68. image: plugins/docker
  69. repo: gitea/gitea
  70. tags: [ '${DRONE_BRANCH##release/v}' ]
  71. when:
  72. event: [ push ]
  73. branch: [ release/* ]
  74. docker:
  75. image: plugins/docker
  76. repo: gitea/gitea
  77. tags: [ 'latest' ]
  78. when:
  79. event: [ push ]
  80. branch: [ master ]
  81. release:
  82. image: plugins/s3
  83. path_style: true
  84. strip_prefix: dist/release/
  85. source: dist/release/*
  86. target: /gitea/${DRONE_TAG##v}
  87. when:
  88. event: [ tag ]
  89. branch: [ refs/tags/* ]
  90. release:
  91. image: plugins/s3
  92. path_style: true
  93. strip_prefix: dist/release/
  94. source: dist/release/*
  95. target: /gitea/${DRONE_BRANCH##release/v}
  96. when:
  97. event: [ push ]
  98. branch: [ release/* ]
  99. release:
  100. image: plugins/s3
  101. path_style: true
  102. strip_prefix: dist/release/
  103. source: dist/release/*
  104. target: /gitea/master
  105. when:
  106. event: [ push ]
  107. branch: [ master ]
  108. github:
  109. image: plugins/github-release
  110. files:
  111. - dist/release/*
  112. when:
  113. event: [ tag ]
  114. branch: [ refs/tags/* ]
  115. gitter:
  116. image: plugins/gitter
  117. services:
  118. mysql:
  119. image: mysql:5.7
  120. environment:
  121. - MYSQL_DATABASE=test
  122. - MYSQL_ALLOW_EMPTY_PASSWORD=yes
  123. when:
  124. event: [ push, tag, pull_request ]
  125. pgsql:
  126. image: postgres:9.5
  127. environment:
  128. - POSTGRES_DB=test
  129. when:
  130. event: [ push, tag, pull_request ]