2016-11-07 12:42:13 +00:00
|
|
|
workspace:
|
2019-03-18 01:10:51 +00:00
|
|
|
base: /go
|
2016-11-10 19:04:30 +00:00
|
|
|
path: src/code.gitea.io/sdk
|
2016-11-07 12:42:13 +00:00
|
|
|
|
2017-08-22 18:20:39 +01:00
|
|
|
clone:
|
|
|
|
git:
|
2019-03-18 01:10:51 +00:00
|
|
|
image: plugins/git:next
|
2017-08-22 18:20:39 +01:00
|
|
|
depth: 50
|
|
|
|
tags: true
|
|
|
|
|
2016-11-07 12:42:13 +00:00
|
|
|
pipeline:
|
|
|
|
testing:
|
2019-03-18 01:10:51 +00:00
|
|
|
image: golang:1.12
|
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
|
|
|
|
2017-06-16 03:46:36 +01: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 ]
|
2017-06-16 03:46:36 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
status: [ changed, failure ]
|