netapp/.drone.yml
Alex Auvolat 6c8dd95d20
Some checks failed
continuous-integration/drone/push Build is failing
Add cargo fmt and clippy checks to drone CI
2021-10-12 13:32:39 +02:00

41 lines
969 B
YAML

kind: pipeline
name: default
workspace:
base: /drone
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- mkdir -p cargo
- git clone $DRONE_GIT_HTTP_URL
- cd netapp
- git checkout $DRONE_COMMIT
- name: style
image: rustlang/rust:nightly
environment:
CARGO_HOME: /drone/cargo
commands:
- cd netapp
- cargo fmt -- --check
- cargo clippy --all-features -- --deny warnings
- cargo clippy --example fullmesh -- --deny warnings
- cargo clippy --example basalt --all-features -- --deny warnings
- name: build
image: rustlang/rust:nightly
environment:
CARGO_HOME: /drone/cargo
commands:
- apt-get update
- apt-get install --yes libsodium-dev
- cargo install -f cargo-all-features
- cd netapp
- cargo build-all-features
- cargo build --example fullmesh
- cargo build --example basalt --features "basalt"