2020-08-17 22:14:22 -06:00
|
|
|
kind: pipeline
|
2020-08-18 10:15:47 -06:00
|
|
|
type: docker
|
2020-08-17 22:14:22 -06:00
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-08-18 12:02:10 -06:00
|
|
|
- name: restore-target-cache
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
volumes:
|
|
|
|
- name: target-cache
|
|
|
|
path: /cache
|
|
|
|
settings:
|
|
|
|
restore: true
|
|
|
|
mount:
|
|
|
|
- ./target
|
|
|
|
|
2020-08-18 21:06:19 -06:00
|
|
|
- name: build
|
|
|
|
image: rust:1
|
|
|
|
volumes:
|
|
|
|
- name: cargo-registry
|
|
|
|
path: /usr/local/cargo/registry
|
|
|
|
commands:
|
|
|
|
- cargo build --verbose
|
|
|
|
|
2020-08-17 22:14:22 -06:00
|
|
|
- name: test
|
2020-08-18 11:57:24 -06:00
|
|
|
image: rust:1
|
2020-08-18 10:12:29 -06:00
|
|
|
volumes:
|
|
|
|
- name: cargo-registry
|
|
|
|
path: /usr/local/cargo/registry
|
2020-08-17 22:14:22 -06:00
|
|
|
commands:
|
2020-08-18 21:06:19 -06:00
|
|
|
- cargo test --verbose
|
|
|
|
|
|
|
|
- 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
|
2020-08-18 10:12:29 -06:00
|
|
|
|
2020-08-18 12:02:10 -06:00
|
|
|
- name: rebuild-target-cache
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
volumes:
|
|
|
|
- name: target-cache
|
|
|
|
path: /cache
|
|
|
|
settings:
|
|
|
|
rebuild: true
|
|
|
|
mount:
|
|
|
|
- ./target
|
|
|
|
|
2020-08-18 10:12:29 -06:00
|
|
|
volumes:
|
2020-08-18 10:35:08 -06:00
|
|
|
- name: cargo-registry
|
2020-08-18 10:12:29 -06:00
|
|
|
host:
|
2020-08-18 12:02:10 -06:00
|
|
|
path: /var/lib/drone/sprinklers_rs/cargo-registry
|
|
|
|
- name: target-cache
|
|
|
|
host:
|
|
|
|
path: /var/lib/drone/sprinklers_rs/target-cache
|