2016-11-07 15:42:13 +03:00
|
|
|
workspace:
|
2019-03-18 04:10:51 +03:00
|
|
|
base: /go
|
2016-11-10 22:04:30 +03:00
|
|
|
path: src/code.gitea.io/sdk
|
2016-11-07 15:42:13 +03:00
|
|
|
|
2017-08-22 20:20:39 +03:00
|
|
|
clone:
|
|
|
|
git:
|
2019-03-18 04:10:51 +03:00
|
|
|
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:
|
2019-03-18 04:10:51 +03:00
|
|
|
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
|
|
|
|
2017-06-16 05:46:36 +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 ]
|
2017-06-16 05:46:36 +03:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
status: [ changed, failure ]
|