From 11cd00567a37ba164baa58a83cfefe24ce79ea4d Mon Sep 17 00:00:00 2001
From: Denis Pisarev <denis.pisarev@parity.io>
Date: Fri, 15 May 2020 16:29:11 +0200
Subject: [PATCH] change (ci): fail test on warnings (#1102)

---
 polkadot/.gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml
index c1f760130be..55689a4215c 100644
--- a/polkadot/.gitlab-ci.yml
+++ b/polkadot/.gitlab-ci.yml
@@ -132,7 +132,7 @@ test-linux-stable:                 &test
     RUST_TOOLCHAIN: stable
     # Enable debug assertions since we are running optimized builds for testing
     # but still want to have debug assertions.
-    RUSTFLAGS: -Cdebug-assertions=y
+    RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
     TARGET: native
   script:
     - time cargo test --all --release --verbose --locked --features runtime-benchmarks
-- 
GitLab