CI: Deny future warnings
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
9d5019ecdd
commit
2e0a90f447
1 changed files with 4 additions and 4 deletions
|
@ -9,6 +9,8 @@ variables:
|
||||||
DOCS_BASEURL: "https://docs.xmpp.rs"
|
DOCS_BASEURL: "https://docs.xmpp.rs"
|
||||||
FEATURES: ""
|
FEATURES: ""
|
||||||
RUST_BACKTRACE: "full"
|
RUST_BACKTRACE: "full"
|
||||||
|
RUSTFLAGS: " -D warnings"
|
||||||
|
RUSTDOCFLAGS: " -D warnings"
|
||||||
|
|
||||||
.show-version:
|
.show-version:
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -23,8 +25,6 @@ variables:
|
||||||
|
|
||||||
.nightly:
|
.nightly:
|
||||||
image: rustlang/rust:nightly-slim
|
image: rustlang/rust:nightly-slim
|
||||||
# It's not often, but it happens nightly breaks, surprisingly.
|
|
||||||
allow_failure: true
|
|
||||||
extends:
|
extends:
|
||||||
- .show-version
|
- .show-version
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@ variables:
|
||||||
script:
|
script:
|
||||||
- cargo test --verbose --release -- --include-ignored
|
- cargo test --verbose --release -- --include-ignored
|
||||||
- cargo test --verbose --no-default-features
|
- cargo test --verbose --no-default-features
|
||||||
variables:
|
|
||||||
RUSTFLAGS: " -D warnings"
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_REF_NAME == 'main'
|
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_REF_NAME == 'main'
|
||||||
|
@ -75,6 +73,8 @@ stable-test:
|
||||||
- .stable
|
- .stable
|
||||||
|
|
||||||
nightly-test:
|
nightly-test:
|
||||||
|
# It's not often, but it happens nightly breaks, surprisingly.
|
||||||
|
allow_failure: true
|
||||||
extends:
|
extends:
|
||||||
- .test
|
- .test
|
||||||
- .nightly
|
- .nightly
|
||||||
|
|
Loading…
Reference in a new issue