2019-04-28 10:51:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2019-04-28 14:26:51 +00:00
|
|
|
image: animenotifier/notify.moe:latest
|
2019-04-28 15:04:08 +00:00
|
|
|
pull: always
|
2019-04-28 10:51:06 +00:00
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
|
|
|
commands:
|
|
|
|
- go version
|
2019-04-28 10:52:48 +00:00
|
|
|
- go mod download
|
2019-04-28 11:01:29 +00:00
|
|
|
- tsc
|
|
|
|
- pack
|
2019-04-28 14:26:51 +00:00
|
|
|
- go build -v
|
2019-04-28 10:51:06 +00:00
|
|
|
- go test -v -coverprofile=coverage.txt ./...
|
2019-04-28 13:44:54 +00:00
|
|
|
# - go mod download
|
|
|
|
# - make tools
|
|
|
|
# - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
|
|
|
|
# - nvm install node
|
|
|
|
# - npm install -g typescript
|
|
|
|
# - tsc
|
|
|
|
# - pack
|
|
|
|
# - make server
|
|
|
|
# - 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
|
|
|
|
# - make bots jobs patches
|
|
|
|
# - git clone --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
|
|
|
|
# - go test -v -coverprofile=coverage.txt ./...
|
2019-04-28 10:51:06 +00:00
|
|
|
|
|
|
|
- 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
|