Add fmt check, check, clippy

This commit is contained in:
Felix Krull 2019-05-22 15:27:27 +02:00 committed by Colin Walters
parent f1a7507ee4
commit 2c7761047a
2 changed files with 8 additions and 0 deletions

View File

@ -32,9 +32,16 @@ publish_ostree-sys:
when: manual
# ostree
ostree_fmt:
stage
cargo fmt --package ostree -- --check
ostree:
stage: build
script:
- cargo fmt -- --check
- cargo check ${CURRENT_FEATURES}
- cargo clippy ${CURRENT_FEATURES}
- cargo test --verbose ${CURRENT_FEATURES}
cache:
paths:

View File

@ -15,6 +15,7 @@ use glib::Error;
// code generated by gir
#[allow(unused_imports)]
#[cfg_attr(rustfmt, rustfmt_skip)]
mod auto;
pub use crate::auto::functions::*;
pub use crate::auto::*;