Commit e051daa6 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Check for Clippy warnings during CI

parent 8559ffc7
Pipeline #68 failed with stage
in 1 minute and 38 seconds
......@@ -12,6 +12,8 @@ variables:
before_script:
- apt-get update -yq
- rustup component add clippy
- rustup component add rustfmt
# Setup SSH deploy keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
......@@ -24,7 +26,8 @@ test:
script:
- rustc --version
- cargo --version
- cargo test --verbose
- cargo test --features "strict" --verbose
- cargo clippy --all-targets --all-features -- -D warnings -A clippy::redundant_field_names -A clippy::useless_format -A clippy::let_and_return -A clippy::type_complexity -A clippy::option_map_unit_fn -A clippy::too_many_arguments
pages:
stage: doc
......
......@@ -5,6 +5,7 @@ authors = ["Robert Czechowski <czechowski@bwinf.de>"]
[features]
watch = ["handlebars-iron/watch"]
strict = [] # Treat warnings as a build error
[dependencies]
rusqlite = "0.13.0"
......
#![cfg_attr(feature = "strict", deny(warnings))]
#[macro_use]
extern crate iron;
#[macro_use]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment