stages:
- build
rust-latest:
stage: build
image: rust:latest
before_script:
- rustup component add clippy
- rustup component add rustfmt
script:
- cargo clippy --all-features --all-targets --tests -- -D warnings
- cargo fmt -- --check --color always
- cargo build --color always
- cargo test --color always
rust-nightly:
stage: build
image: rustlang/rust:nightly
script:
- cargo build --color always
- cargo test --color always
allow_failure: true