Actix-Demo/.drone.yml

24 lines
561 B
YAML
Raw Normal View History

2021-04-28 10:20:18 +00:00
---
2021-04-27 17:25:42 +00:00
kind: pipeline
name: default
steps:
2021-04-28 10:20:18 +00:00
- name: check
image: guangie88/rustfmt-clippy:1.51.0-stable
commands:
2021-04-28 11:07:04 +00:00
- cargo fmt --all -- --check
2021-04-28 10:20:18 +00:00
- cargo check --workspace
- name: lint
image: guangie88/rustfmt-clippy:1.51.0-stable
commands:
- cargo clippy -- -D warnings
2021-04-27 17:25:42 +00:00
- name: test
2021-04-28 10:20:18 +00:00
image: guangie88/rustfmt-clippy:1.51.0-stable
2021-04-27 17:25:42 +00:00
commands:
2021-04-28 11:07:04 +00:00
- cargo test --all
2021-04-28 10:20:18 +00:00
- name: package
image: guangie88/rustfmt-clippy:1.51.0-stable
2021-04-28 11:07:04 +00:00
depends_on: [check, test, lint]
2021-04-28 10:20:18 +00:00
commands:
2021-04-28 11:07:04 +00:00
- cargo build --release --all