You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. workspace:
  2. base: /srv/app
  3. path: src/code.gitea.io/gitea
  4. pipeline:
  5. test:
  6. image: webhippie/golang:edge
  7. pull: true
  8. environment:
  9. CGO_ENABLED: 1
  10. TAGS: cert sqlite pam miniwinsvc
  11. commands:
  12. - apk -U add linux-pam-dev openssh-client
  13. - make clean
  14. - make vet
  15. # - make lint
  16. - make test
  17. - make build
  18. when:
  19. event: [ push, tag, pull_request ]
  20. test-mysql:
  21. image: webhippie/golang:edge
  22. pull: true
  23. commands:
  24. - make test-mysql
  25. when:
  26. event: [ push ]
  27. test-pgsql:
  28. image: webhippie/golang:edge
  29. pull: true
  30. commands:
  31. - make test-pgsql
  32. when:
  33. event: [ push ]
  34. coverage:
  35. image: plugins/coverage
  36. server: https://coverage.gitea.io
  37. when:
  38. event: [ push, tag, pull_request ]
  39. updater:
  40. image: karalabe/xgo-latest:latest
  41. pull: true
  42. commands:
  43. - make publish
  44. when:
  45. event: [ push, tag ]
  46. branch: [ master, refs/tags/* ]
  47. docker:
  48. image: plugins/docker
  49. repo: gitea/gitea
  50. tags: [ '${TAG}' ]
  51. when:
  52. event: [ tag ]
  53. branch: [ refs/tags/* ]
  54. docker:
  55. image: plugins/docker
  56. repo: gitea/gitea
  57. tags: [ 'latest' ]
  58. when:
  59. event: [ push ]
  60. branch: [ master ]
  61. release:
  62. image: plugins/s3
  63. path_style: true
  64. source: dist/release/
  65. target: /gitea/master
  66. when:
  67. event: [ push ]
  68. branch: [ master ]
  69. release:
  70. image: plugins/s3
  71. path_style: true
  72. source: dist/release/
  73. target: /gitea/$$TAG
  74. when:
  75. event: [ tag ]
  76. branch: [ refs/tags/* ]
  77. latest:
  78. image: plugins/s3
  79. path_style: true
  80. source: dist/latest/
  81. target: /gitea/latest
  82. when:
  83. event: [ tag ]
  84. branch: [ refs/tags/* ]
  85. github:
  86. image: plugins/github-release
  87. files:
  88. - dist/release/*
  89. when:
  90. event: [ tag ]
  91. branch: [ refs/tags/* ]
  92. gitter:
  93. image: plugins/gitter
  94. services:
  95. mysql:
  96. image: mysql:5.7
  97. environment:
  98. - MYSQL_DATABASE=test
  99. - MYSQL_ALLOW_EMPTY_PASSWORD=yes
  100. when:
  101. event: [ push ]
  102. pgsql:
  103. image: postgres:9.5
  104. environment:
  105. - POSTGRES_DB=test
  106. when:
  107. event: [ push ]