elseware/.drone.yml
jake 7ef453ca17
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
try removing incremental build files to see if it helps ci disk usage
2023-11-11 23:28:02 -07:00

62 lines
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: test elseware
concurrency:
limit: 1
steps:
- name: clean cache
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo sweep --maxsize 12GiB
environment:
CARGO_INCREMENTAL: false
- name: build
image: rustlang/rust:nightly
volumes:
- name: cache
path: /usr/local/cargo
- name: target-cache
path: /drone/src/target
commands:
- cargo build
environment:
CARGO_INCREMENTAL: false
- 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
environment:
CARGO_INCREMENTAL: false
- 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
environment:
CARGO_INCREMENTAL: false
volumes:
- name: cache
host:
path: /home/drone/.cargo
- name: target-cache
host:
path: /home/drone/cargo-cache