Skip to content
Snippets Groups Projects
Commit d2246fa1 authored by Éloïs's avatar Éloïs Committed by Éloïs
Browse files

[fix] #61 pass-fmt-job-to-stable-version

parent 93d4012d
No related branches found
No related tags found
No related merge requests found
stages: stages:
- build_and_tests - build_and_tests
- clippy
- fmt - fmt
- clippy
before_script: before_script:
- export PATH="$HOME/.cargo/bin:$PATH" - export PATH="$HOME/.cargo/bin:$PATH"
...@@ -33,26 +33,23 @@ build_and_tests:nightly: ...@@ -33,26 +33,23 @@ build_and_tests:nightly:
when: manual when: manual
allow_failure: true allow_failure: true
clippy: fmt:
stage: clippy stage: fmt
image: rustlang/rust:nightly
tags: tags:
- redshift-rs-nightly - redshift-rs-stable
before_script: before_script:
- export PATH="$HOME/.cargo/bin:$PATH" - export PATH="$HOME/.cargo/bin:$PATH"
- cargo install --force clippy --verbose
script: script:
- cargo clippy --all -- -D warnings --verbose - cargo fmt --all -- --write-mode=diff
allow_failure: true
fmt: clippy:
stage: fmt stage: clippy
image: rustlang/rust:nightly image: rustlang/rust:nightly
tags: tags:
- redshift-rs-nightly - redshift-rs-nightly
before_script: before_script:
- export PATH="$HOME/.cargo/bin:$PATH" - export PATH="$HOME/.cargo/bin:$PATH"
- cargo install --force rustfmt-nightly - cargo install --force clippy --verbose
script: script:
- cargo fmt -- --write-mode=diff - cargo clippy --all -- -D warnings --verbose
allow_failure: true allow_failure: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment