go-sdk/.drone.yml

35 строки
638 B
YAML
Исходник Обычный вид История

2016-11-07 15:42:13 +03:00
workspace:
base: /go
path: src/code.gitea.io/sdk
2016-11-07 15:42:13 +03:00
2017-08-22 20:20:39 +03:00
clone:
git:
image: plugins/git:next
2017-08-22 20:20:39 +03:00
depth: 50
tags: true
2016-11-07 15:42:13 +03:00
pipeline:
testing:
image: golang:1.12
2016-11-07 15:42:13 +03:00
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
2017-08-22 20:20:39 +03:00
# coverage:
# image: plugins/coverage:1
# pull: true
# secrets: [ github_token ]
# server: https://coverage.gitea.io
2016-11-07 15:42:13 +03:00
discord:
2017-08-22 20:20:39 +03: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 ]