elseware/.drone.yml
jake 2cede0077a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
try using cargo-prune instead of cargo-sweep
2023-11-12 00:08:38 -07:00

57 lines
999 B
YAML

---
kind: pipeline
type: docker
name: test elseware
concurrency:
limit: 1
environment:
CARGO_INCREMENTAL: false
steps:
- name: clean cache
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo prune
- name: build
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo build
- name: clippy!
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo clippy -- --deny warnings
- name: test
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo test --jobs 1
volumes:
- name: cache
host:
path: /home/drone/.cargo
- name: target-cache
host:
path: /home/drone/cargo-cache