drone
This commit is contained in:
parent
86649b56aa
commit
c358202a3a
24
.drone.yml
Normal file
24
.drone.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: fmt
|
||||||
|
image: rust:1.43.0
|
||||||
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
- name: test
|
||||||
|
image: rust:1.43.0
|
||||||
|
commands:
|
||||||
|
- cargo test
|
||||||
|
- name: publish
|
||||||
|
image: rust:1.43.0
|
||||||
|
environment:
|
||||||
|
CARGO_REGISTRY_TOKEN:
|
||||||
|
from_secret: cargo_tkn
|
||||||
|
commands:
|
||||||
|
- grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1)
|
||||||
|
- cargo package
|
||||||
|
- cargo publish
|
||||||
|
when:
|
||||||
|
event: tag
|
0
src/protocol/error.rs
Normal file
0
src/protocol/error.rs
Normal file
Loading…
x
Reference in New Issue
Block a user