stages:
- build
rust-latest:
stage: build
image: rust:latest
variables:
RUSTFLAGS: -Dwarnings
script:
- rustup component add rustfmt clippy
- cargo build --verbose
- cargo test --verbose
- cargo fmt -- --check
- cargo clippy -- -D warnings
cache:
paths:
- .cargo
- target
rust-nightly:
stage: build
image: rustlang/rust:nightly
script:
- cargo build --verbose
- cargo test --verbose
allow_failure: true