forgejo-sdk/.drone.yml

35 lines
650 B
YAML
Raw Normal View History

2016-11-07 12:42:13 +00:00
workspace:
base: /srv/app
path: src/code.gitea.io/sdk
2016-11-07 12:42:13 +00:00
2017-08-22 18:20:39 +01:00
clone:
git:
image: plugins/git:1
depth: 50
tags: true
2016-11-07 12:42:13 +00:00
pipeline:
testing:
2017-08-22 18:20:39 +01:00
image: webhippie/golang:edge
2016-11-07 12:42:13 +00:00
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
2017-08-22 18:20:39 +01:00
# coverage:
# image: plugins/coverage:1
# pull: true
# secrets: [ github_token ]
# server: https://coverage.gitea.io
2016-11-07 12:42:13 +00:00
discord:
2017-08-22 18:20:39 +01:00
image: appleboy/drone-discord:1.0.0
pull: true
secrets: [ discord_webhook_id, discord_webhook_token ]
when:
event: [ push, tag, pull_request ]
status: [ changed, failure ]