Browse Source

Separate drone steps and add clippy

refactor-section-runner
Alex Mikhalev 4 years ago
parent
commit
2d0927cff2
  1. 22
      .drone.yml

22
.drone.yml

@ -13,14 +13,32 @@ steps:
mount: mount:
- ./target - ./target
- name: build
image: rust:1
volumes:
- name: cargo-registry
path: /usr/local/cargo/registry
commands:
- cargo build --verbose
- name: test - name: test
image: rust:1 image: rust:1
volumes: volumes:
- name: cargo-registry - name: cargo-registry
path: /usr/local/cargo/registry path: /usr/local/cargo/registry
commands: commands:
- cargo build --verbose --all - cargo test --verbose
- cargo test --verbose --all
- name: clippy
image: rust:1
failure: ignore
volumes:
- name: cargo-registry
path: /usr/local/cargo/registry
commands:
- rustup component add clippy
- cargo clean -p sprinklers_rs
- cargo clippy --all-targets --all-features -- -D warnings
- name: rebuild-target-cache - name: rebuild-target-cache
image: drillster/drone-volume-cache image: drillster/drone-volume-cache

Loading…
Cancel
Save