2019-04-28 19:51:06 +09:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
|
|
|
commands:
|
|
|
|
- go version
|
2019-04-28 19:52:48 +09:00
|
|
|
- go mod download
|
2019-04-28 19:51:06 +09:00
|
|
|
- go get ./...
|
|
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
|
|
|
|
- golangci-lint run
|
|
|
|
- git clone --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
|
|
|
|
- make tools
|
2019-04-28 19:51:38 +09:00
|
|
|
- make server bots jobs patches
|
2019-04-28 19:51:06 +09:00
|
|
|
- go test -v -coverprofile=coverage.txt ./...
|
|
|
|
|
|
|
|
- name: coverage
|
|
|
|
image: plugins/codecov
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: codecov-token
|
|
|
|
files:
|
|
|
|
- coverage.txt
|
|
|
|
|
|
|
|
- name: discord
|
|
|
|
image: appleboy/drone-discord
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
settings:
|
|
|
|
webhook_id:
|
|
|
|
from_secret: discord-id
|
|
|
|
webhook_token:
|
|
|
|
from_secret: discord-token
|