0ccfe01abb
* switch gitter to discord for drone. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * add changed status Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
26 lines
512 B
YAML
26 lines
512 B
YAML
workspace:
|
|
base: /srv/app
|
|
path: src/code.gitea.io/sdk
|
|
|
|
pipeline:
|
|
testing:
|
|
image: webhippie/golang:latest
|
|
pull: true
|
|
commands:
|
|
- make clean
|
|
- make vet
|
|
- make lint
|
|
- make test
|
|
- make build
|
|
|
|
coverage:
|
|
image: plugins/coverage
|
|
server: https://coverage.gitea.io
|
|
|
|
discord:
|
|
image: appleboy/drone-discord
|
|
webhook_id: ${WEBHOOK_ID}
|
|
webhook_token: ${WEBHOOK_TOKEN}
|
|
when:
|
|
event: [ push, tag, pull_request ]
|
|
status: [ changed, failure ]
|