CI: Deny future warnings

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
xmpp ftw 2024-01-27 18:19:39 +01:00 committed by pep
parent 9d5019ecdd
commit 2e0a90f447

View file

@ -9,6 +9,8 @@ variables:
DOCS_BASEURL: "https://docs.xmpp.rs"
FEATURES: ""
RUST_BACKTRACE: "full"
RUSTFLAGS: " -D warnings"
RUSTDOCFLAGS: " -D warnings"
.show-version:
before_script:
@ -23,8 +25,6 @@ variables:
.nightly:
image: rustlang/rust:nightly-slim
# It's not often, but it happens nightly breaks, surprisingly.
allow_failure: true
extends:
- .show-version
@ -33,8 +33,6 @@ variables:
script:
- cargo test --verbose --release -- --include-ignored
- cargo test --verbose --no-default-features
variables:
RUSTFLAGS: " -D warnings"
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_REF_NAME == 'main'
@ -75,6 +73,8 @@ stable-test:
- .stable
nightly-test:
# It's not often, but it happens nightly breaks, surprisingly.
allow_failure: true
extends:
- .test
- .nightly