Add Drone CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2023-01-08 16:57:55 +01:00
parent 2026a2ddc6
commit 34e28384ce
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

46
.drone.yml Normal file
View File

@ -0,0 +1,46 @@
kind: pipeline
type: docker
name: rust
steps:
- name: restore cache
image: drillster/drone-volume-cache
volumes:
- name: target
path: /target
- name: cargo
path: /cargo
settings:
restore: true
mount:
- ./target
- /usr/local/cargo
- name: compilation
image: rust
commands:
- cargo build --verbose
- name: tests
image: rust
commands:
- cargo test --verbose
- name: clippy
image: rust
commands:
- rustup component add clippy
- cargo clippy --verbose
- name: rebuild cache
image: drillster/drone-volume-cache
volumes:
- name: target
path: /target
- name: cargo
path: /cargo
settings:
rebuild: true
mount:
- ./target
- /usr/local/cargo