23 lines
539 B
YAML
23 lines
539 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build && test
|
|
image: rust:1
|
|
commands:
|
|
- cargo build --verbose --all
|
|
- cargo test --verbose --all
|
|
-
|
|
- name: send telegram notification
|
|
image: appleboy/drone-telegram
|
|
settings:
|
|
token:
|
|
from_secret: telegram_token
|
|
to: 2129601481
|
|
message: >
|
|
{{#success build.status}}
|
|
build {{build.number}} succeeded. Good job.
|
|
{{else}}
|
|
build {{build.number}} failed. Fix me please.
|
|
{{/success}} |