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 when: manual
# ostree # ostree
ostree_fmt:
stage
cargo fmt --package ostree -- --check
ostree: ostree:
stage: build stage: build
script: script:
- cargo fmt -- --check
- cargo check ${CURRENT_FEATURES}
- cargo clippy ${CURRENT_FEATURES}
- cargo test --verbose ${CURRENT_FEATURES} - cargo test --verbose ${CURRENT_FEATURES}
cache: cache:
paths: paths:

View File

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