From 2e0a90f4472b0b978c43b814679a17900f105317 Mon Sep 17 00:00:00 2001 From: xmpp ftw Date: Sat, 27 Jan 2024 18:19:39 +0100 Subject: [PATCH] CI: Deny future warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ddf437a0..61caa137 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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