2019-09-15 15:27:08 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
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
|
|
|
|
2019-09-15 15:27:08 +01:00
|
|
|
steps:
|
|
|
|
- name: git
|
|
|
|
pull: default
|
|
|
|
image: plugins/git:next
|
|
|
|
settings:
|
2017-08-22 18:20:39 +01:00
|
|
|
depth: 50
|
|
|
|
tags: true
|
|
|
|
|
2019-09-15 15:27:08 +01:00
|
|
|
- name: testing
|
|
|
|
pull: always
|
|
|
|
image: golang:1.13
|
|
|
|
environment:
|
|
|
|
GOPROXY: https://goproxy.cn
|
|
|
|
commands:
|
|
|
|
- make clean
|
|
|
|
- make vet
|
|
|
|
- make lint
|
|
|
|
- make test
|
|
|
|
- make build
|
2016-11-07 12:42:13 +00:00
|
|
|
|
2019-09-15 15:27:08 +01:00
|
|
|
- name: discord
|
|
|
|
pull: always
|
|
|
|
image: appleboy/drone-discord:1.0.0
|
|
|
|
environment:
|
|
|
|
DISCORD_WEBHOOK_ID:
|
|
|
|
from_secret: discord_webhook_id
|
|
|
|
DISCORD_WEBHOOK_TOKEN:
|
|
|
|
from_secret: discord_webhook_token
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
- pull_request
|
|
|
|
status:
|
|
|
|
- changed
|
|
|
|
- failure
|