stages:
- build
rust-latest:
stage: build
image: rust:latest
before_script:
- rustup component add clippy
- rustup component add rustfmt
script:
- cargo clippy --tests
- cargo fmt -- --check
- cargo build
- cargo test
rust-nightly:
stage: build
image: rustlang/rust:nightly
script:
- cargo build
- cargo test
allow_failure: true
variables:
CARGO_TERM_COLOR: always