forgejo-sdk/.drone.yml
2017-09-07 19:11:38 +02:00

34 lines
650 B
YAML

workspace:
base: /srv/app
path: src/code.gitea.io/sdk
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
testing:
image: webhippie/golang:edge
pull: true
commands:
- make clean
- make vet
- make lint
- make test
- make build
# coverage:
# image: plugins/coverage:1
# pull: true
# secrets: [ github_token ]
# server: https://coverage.gitea.io
discord:
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 ]