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