update .drone.yml
This commit is contained in:
parent
6df6411b72
commit
34aade6ce9
1 changed files with 19 additions and 17 deletions
36
.drone.yml
36
.drone.yml
|
@ -1,28 +1,17 @@
|
||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /drone
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- mkdir -p cargo
|
|
||||||
- git clone $DRONE_GIT_HTTP_URL
|
|
||||||
- cd netapp
|
|
||||||
- git checkout $DRONE_COMMIT
|
|
||||||
|
|
||||||
- name: style
|
- name: style
|
||||||
image: rust:1.58-buster
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
- rustup component add rustfmt clippy
|
- rustup component add rustfmt clippy
|
||||||
- cd netapp
|
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
- cargo clippy --all-features -- --deny warnings
|
- cargo clippy --all-features -- --deny warnings
|
||||||
- cargo clippy --example fullmesh -- --deny warnings
|
- cargo clippy --example fullmesh -- --deny warnings
|
||||||
|
@ -32,11 +21,13 @@ steps:
|
||||||
image: rust:1.58-buster
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install --yes libsodium-dev
|
- apt-get install --yes libsodium-dev
|
||||||
- cargo install -f cargo-all-features
|
- cargo install -f cargo-all-features
|
||||||
- cd netapp
|
|
||||||
- cargo build-all-features
|
- cargo build-all-features
|
||||||
- cargo build --example fullmesh
|
- cargo build --example fullmesh
|
||||||
- cargo build --example basalt --features "basalt"
|
- cargo build --example basalt --features "basalt"
|
||||||
|
@ -45,8 +36,19 @@ steps:
|
||||||
image: rust:1.58-buster
|
image: rust:1.58-buster
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: /drone/cargo
|
CARGO_HOME: /drone/cargo
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
path: /drone/cargo
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install --yes libsodium-dev
|
- apt-get install --yes libsodium-dev
|
||||||
- cd netapp
|
|
||||||
- cargo test --all-features -- --test-threads 1
|
- cargo test --all-features -- --test-threads 1
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cargo
|
||||||
|
temp: {}
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: f0d1a9e8d85a22c1d9084b4d90c9930be9700da52284f1875ece996cc52a6ce9
|
||||||
|
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue