1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
pipelines:
default:
- step:
name: MSRV
image: rust:1.37.0
caches:
- cargo
- rust-target
script:
# 1.37.0 is too old to use the current Cargo.lock format
- rm Cargo.lock
- cargo build
- cargo test
- step:
name: Stable
image: rust:latest
caches:
- cargo
- rust-target
script:
- rustup component add rustfmt
- cargo fmt --check
- cargo build
- cargo test
- step:
name: Nightly
image: rustlang/rust:nightly
caches:
- cargo
- rust-target
script:
# ensure that benchmarks build
- cargo build --all-targets
- cargo test
definitions:
caches:
cargo: /usr/local/cargo # CARGO_HOME
rust-target: target
|