image: rustdocker/rust:stable variables: GIT_SSL_NO_VERIFY: "true" CARGO_HOME: $CI_PROJECT_DIR/cargo test:cargo: script: - rustc --version && cargo --version - cargo test --verbose --jobs 1 cache: paths: - target/ - cargo/ lint:clippy: allow_failure: false script: - cargo clippy -- -D warnings # Turn all warnings into errors cache: paths: - target/ - cargo/ lint:fmt: allow_failure: false script: - cargo fmt --all -- --check # fail on formatting issues cache: paths: - target/ - cargo/