2019-09-07 14:58:51 -07:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-09-11 00:26:15 -04:00
|
|
|
type: docker
|
|
|
|
name: test libpso
|
2019-09-07 14:58:51 -07:00
|
|
|
|
2023-11-14 21:37:02 -07:00
|
|
|
concurrency:
|
|
|
|
limit: 1
|
|
|
|
|
|
|
|
environment:
|
|
|
|
CARGO_INCREMENTAL: false
|
|
|
|
|
2019-09-07 14:58:51 -07:00
|
|
|
steps:
|
2023-11-14 21:37:02 -07:00
|
|
|
- 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
|
2019-09-11 00:26:15 -04:00
|
|
|
image: rustlang/rust:nightly
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /usr/local/cargo
|
2019-09-13 18:26:57 -07:00
|
|
|
- name: target-cache
|
2019-09-11 00:26:15 -04:00
|
|
|
path: /drone/src/target
|
2019-09-07 19:46:10 -07:00
|
|
|
commands:
|
2023-11-14 21:37:02 -07:00
|
|
|
- cargo build
|
|
|
|
- name: clippy!
|
2019-09-11 00:26:15 -04:00
|
|
|
image: rustlang/rust:nightly
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /usr/local/cargo
|
2019-09-13 18:26:57 -07:00
|
|
|
- name: target-cache
|
2019-09-11 00:26:15 -04:00
|
|
|
path: /drone/src/target
|
2019-09-07 19:46:10 -07:00
|
|
|
commands:
|
2023-11-14 21:37:02 -07:00
|
|
|
- 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
|
2019-09-11 00:26:15 -04:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
host:
|
|
|
|
path: /home/drone/.cargo
|
|
|
|
- name: target-cache
|
|
|
|
host:
|
|
|
|
path: /home/drone/cargo-cache
|