2021-09-11 14:34:03 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /drone/diplonat
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: code style
|
2021-09-20 13:59:52 +00:00
|
|
|
image: rust:1.47
|
2021-09-11 14:34:03 +00:00
|
|
|
commands:
|
2021-09-20 13:59:52 +00:00
|
|
|
- rustup toolchain install nightly-x86_64-unknown-linux-gnu
|
2021-09-20 13:00:31 +00:00
|
|
|
- rustup component add rustfmt --toolchain nightly
|
|
|
|
- cargo +nightly fmt --all -- --check
|
2021-09-11 14:34:03 +00:00
|
|
|
# - name: code quality
|
|
|
|
# image: rust:1.47
|
|
|
|
# commands:
|
|
|
|
# - cargo clippy -- --deny warnings
|
2021-09-20 13:00:31 +00:00
|
|
|
- name: test
|
|
|
|
image: rust:1.47
|
|
|
|
commands:
|
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2021-09-11 14:34:03 +00:00
|
|
|
|