Commit f32810f8 authored by Éloïs's avatar Éloïs

[ci] use fmt & clippy on stable toolchain

parent e98b5529
......@@ -12,11 +12,12 @@ variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
.rust_stable_lin64: &rust_stable_lin64
image: registry.duniter.org/docker/duniter-rs-ci:0.0.7
image: registry.duniter.org/docker/duniter-rs-ci:v0.1.0
tags:
- redshift-rs-stable
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup show
- rustc --version && cargo --version
.rust_beta_lin64: &rust_beta_lin64
......@@ -51,11 +52,10 @@ variables:
- rustc --version && cargo --version
fmt:
<<: *rust_nightly_lin64
<<: *rust_stable_lin64
stage: fmt
before_script:
- rustup show
- rustup component add rustfmt-preview --toolchain nightly
- cargo fmt -- --version
script:
- cargo fmt -- --check
......@@ -132,17 +132,22 @@ tests:linux64:nightly:
when: manual
allow_failure: true
fmt:
<<: *rust_stable_lin64
stage: fmt
before_script:
- cargo fmt -- --version
script:
- cargo fmt -- --check
clippy:
image: guangie88/rustfmt-clippy:nightly
tags:
- redshift-rs-nightly
<<: *rust_stable_lin64
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- rustc --version && cargo --version
- cargo clippy -- -V
stage: clippy
script:
- cargo clippy --all -- -D warnings --verbose
allow_failure: true
publish:crate:
<<: *rust_stable_lin64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment