go-sdk/.drone.yml

51 lines
748 B
YAML
Raw Normal View History

2019-09-15 19:57:08 +05:30
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
clone:
disable: true
2016-11-07 18:12:13 +05:30
workspace:
base: /go
path: src/code.gitea.io/sdk
2016-11-07 18:12:13 +05:30
2019-09-15 19:57:08 +05:30
steps:
- name: git
pull: default
image: plugins/git:next
settings:
2017-08-22 22:50:39 +05:30
depth: 50
tags: true
2019-09-15 19:57:08 +05:30
- 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 18:12:13 +05:30
2019-09-15 19:57:08 +05:30
- 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