THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

A command line tool to interact with Gitea servers, moved to https://gitea.com/gitea/tea
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

145 行
2.9KB

  1. workspace:
  2. base: /go
  3. path: src/code.gitea.io/tea
  4. clone:
  5. git:
  6. image: plugins/git:next
  7. depth: 50
  8. tags: true
  9. pipeline:
  10. build:
  11. image: golang:1.12
  12. pull: true
  13. commands:
  14. - make clean
  15. - make vet
  16. - make lint
  17. - make fmt-check
  18. - make misspell-check
  19. - make test-vendor
  20. - make build
  21. when:
  22. event: [ push, tag, pull_request ]
  23. unit-test:
  24. image: golang:1.12
  25. pull: true
  26. group: test
  27. commands:
  28. - make unit-test-coverage
  29. when:
  30. event: [ push, pull_request ]
  31. branch: [ master ]
  32. release-test:
  33. image: golang:1.12
  34. pull: true
  35. group: test
  36. commands:
  37. - make test
  38. when:
  39. event: [ push, pull_request ]
  40. branch: [ release/* ]
  41. tag-test:
  42. image: golang:1.12
  43. pull: true
  44. group: test
  45. commands:
  46. - make test
  47. when:
  48. event: [ tag ]
  49. coverage:
  50. image: robertstettner/drone-codecov
  51. secrets: [ codecov_token ]
  52. files:
  53. - coverage.out
  54. when:
  55. event: [ push, pull_request ]
  56. branch: [ master ]
  57. static:
  58. image: techknowlogick/xgo:latest
  59. pull: true
  60. commands:
  61. - export PATH=$PATH:$GOPATH/bin
  62. - make release
  63. when:
  64. event: [ push, tag ]
  65. gpg-sign:
  66. image: plugins/gpgsign:1
  67. pull: true
  68. secrets: [ gpgsign_key, gpgsign_passphrase ]
  69. detach_sign: true
  70. files:
  71. - dist/release/*
  72. excludes:
  73. - dist/release/*.sha256
  74. when:
  75. event: [ push, tag ]
  76. tag-release:
  77. image: plugins/s3:1
  78. pull: true
  79. secrets: [ aws_access_key_id, aws_secret_access_key ]
  80. bucket: releases
  81. acl: public-read
  82. endpoint: https://storage.gitea.io
  83. path_style: true
  84. strip_prefix: dist/release/
  85. source: dist/release/*
  86. target: /tea/${DRONE_TAG##v}
  87. when:
  88. event: [ tag ]
  89. release-branch-release:
  90. image: plugins/s3:1
  91. pull: true
  92. secrets: [ aws_access_key_id, aws_secret_access_key ]
  93. bucket: releases
  94. acl: public-read
  95. endpoint: https://storage.gitea.io
  96. path_style: true
  97. strip_prefix: dist/release/
  98. source: dist/release/*
  99. target: /tea/${DRONE_BRANCH##release/v}
  100. when:
  101. event: [ push ]
  102. branch: [ release/* ]
  103. release:
  104. image: plugins/s3:1
  105. pull: true
  106. secrets: [ aws_access_key_id, aws_secret_access_key ]
  107. bucket: releases
  108. acl: public-read
  109. endpoint: https://storage.gitea.io
  110. path_style: true
  111. strip_prefix: dist/release/
  112. source: dist/release/*
  113. target: /tea/master
  114. when:
  115. event: [ push ]
  116. branch: [ master ]
  117. github:
  118. image: plugins/github-release:1
  119. pull: true
  120. secrets: [ github_token ]
  121. files:
  122. - dist/release/*
  123. when:
  124. event: [ tag ]
  125. discord:
  126. image: appleboy/drone-discord:1.0.0
  127. pull: true
  128. secrets: [ discord_webhook_id, discord_webhook_token ]
  129. when:
  130. event: [ push, tag, pull_request ]
  131. status: [ changed, failure ]