diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..324d666 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/src/protocol/error.rs b/src/protocol/error.rs new file mode 100644 index 0000000..e69de29