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

[ci] use env var RUST_FLAGS to deny all compilation warnings

parent ec33f0e0
No related branches found
No related tags found
1 merge request!109Resolve "Fork resolution algorithm"
Showing
with 6 additions and 36 deletions
......@@ -80,7 +80,7 @@ tests:linux64:stable:
- redshift-rs-stable
script:
- cd bin/durs-server
- cargo build --features=strict,ssl
- RUSTFLAGS="-D warnings" cargo build --features=ssl
- cargo test --all
tests:arm-v7-:stable:
......@@ -88,7 +88,7 @@ tests:arm-v7-:stable:
stage: tests
script:
- cd bin/durs-server
- cargo build --target=armv7-unknown-linux-gnueabihf --features=ssl
- RUSTFLAGS="-D warnings" cargo build --target=armv7-unknown-linux-gnueabihf --features=ssl
- cargo test --all --target=armv7-unknown-linux-gnueabihf
allow_failure: true
when: manual
......@@ -100,7 +100,7 @@ tests:arm-v7:stable:
stage: tests
script:
- cd bin/durs-server
- cargo build --target=armv7-unknown-linux-gnueabihf --features=ssl
- RUSTFLAGS="-D warnings" cargo build --target=armv7-unknown-linux-gnueabihf --features=ssl
- cargo test --all --target=armv7-unknown-linux-gnueabihf
only:
- tags
......@@ -110,7 +110,7 @@ tests:win64:stable:
stage: tests
script:
- cd bin/durs-server
- cargo build --target=x86_64-pc-windows-gnu
- RUSTFLAGS="-D warnings" cargo build --target=x86_64-pc-windows-gnu
- cargo test --package json-pest-parser --target=x86_64-pc-windows-gnu
- cargo test --package durs-common-tools --target=x86_64-pc-windows-gnu
- cargo test --package dup-crypto --target=x86_64-pc-windows-gnu
......@@ -131,7 +131,7 @@ tests:linux64:beta:
stage: tests
script:
- cd bin/durs-server
- cargo build --features=strict,ssl
- RUSTFLAGS="-D warnings" cargo build --features=ssl
- cargo test --all
when: manual
allow_failure: true
......@@ -141,7 +141,7 @@ tests:linux64:nightly:
stage: tests
script:
- cd bin/durs-server
- cargo build --features=strict,ssl
- RUSTFLAGS="-D warnings" cargo build --features=ssl
- cargo test --all
when: manual
allow_failure: true
......
......@@ -18,6 +18,4 @@ durs-tui = { path = "../../lib/modules/tui" }
[features]
ssl = ["durs-ws2p-v1-legacy/ssl"]
# Treat warnings as a build error.
strict = []
......@@ -15,7 +15,6 @@
//! Main function for classic duniter-rust nodes (no specialization).
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -22,5 +22,3 @@ durs-common-tools = { path = "../../tools/common-tools" }
rpassword = "1.0.0"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,7 +15,6 @@
//! Durs keys configuration module
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
......
......@@ -15,7 +15,6 @@
//! Durs configuration files properties module
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -28,5 +28,3 @@ structopt= "0.2.*"
threadpool = "1.7.*"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,7 +15,6 @@
//! Crate containing Duniter-rust core.
#![cfg_attr(feature = "strict", deny(warnings))]
//#![cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))]
#![deny(
missing_docs,
......
......@@ -20,5 +20,3 @@ serde_derive = "1.0.*"
serde_json = "1.0.*"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,7 +15,6 @@
//! Define the format of the messages exchanged between the DURS modules.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -19,5 +19,3 @@ serde_json = "1.0.*"
structopt= "0.2.*"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -16,7 +16,6 @@
//! Defined the few global types used by all modules,
//! as well as the DursModule trait that all modules must implement.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -22,5 +22,3 @@ structopt= "0.2.*"
[dev-dependencies]
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,7 +15,6 @@
//! Defined all aspects of the inter-node network that concern all modules and are therefore independent of one implementation or another of this network layer.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -28,6 +28,3 @@ dup-crypto-tests-tools = { path = "../../../tests-tools/crypto-tests-tools" }
dubp-documents-tests-tools = { path = "../../../tests-tools/documents-tests-tools" }
[features]
exp = []
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,8 +15,6 @@
//! Datas Access Layer
#![cfg_attr(feature = "strict", deny(warnings))]
#![cfg_attr(feature = "exp", allow(warnings))]
#![allow(clippy::large_enum_variant)]
#![deny(
missing_docs,
......
......@@ -15,7 +15,6 @@
//! Module managing the Duniter blockchain.
#![cfg_attr(feature = "strict", deny(warnings))]
#![allow(clippy::large_enum_variant)]
#![deny(
missing_docs,
......
......@@ -22,5 +22,3 @@ serde_json = "1.0.*"
structopt= "0.2.*"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,7 +15,6 @@
//! Module template to copy to create a new Durs module.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(
missing_docs,
missing_debug_implementations,
......
......@@ -25,5 +25,3 @@ structopt= "0.2.*"
termion = "1.5.*"
[features]
# Treat warnings as a build error.
strict = []
\ 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