2016-11-07 12:42:13 +00:00
|
|
|
workspace:
|
|
|
|
base: /srv/app
|
2016-11-10 19:04:30 +00:00
|
|
|
path: src/code.gitea.io/sdk
|
2016-11-07 12:42:13 +00:00
|
|
|
|
|
|
|
pipeline:
|
|
|
|
testing:
|
|
|
|
image: webhippie/golang:latest
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- make clean
|
|
|
|
- make vet
|
2016-11-10 20:06:17 +00:00
|
|
|
- make lint
|
2016-11-07 12:42:13 +00:00
|
|
|
- make test
|
|
|
|
- make build
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
image: plugins/coverage
|
2016-11-10 19:04:30 +00:00
|
|
|
server: https://coverage.gitea.io
|
2016-11-07 12:42:13 +00:00
|
|
|
|
2017-06-16 03:46:36 +01:00
|
|
|
discord:
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
webhook_id: ${WEBHOOK_ID}
|
|
|
|
webhook_token: ${WEBHOOK_TOKEN}
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
status: [ changed, failure ]
|