diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ffe044..1f72deb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,12 +6,12 @@ rust-latest: image: rust:latest script: - cargo build --release - - cargo test + - cargo test --release rust-nightly: stage: build image: rustlang/rust:nightly script: - cargo build --release - - cargo test + - cargo test --release allow_failure: true \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 8d15410..f6d782f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,10 @@ -mod mdstat_parser; +mod parser; #[macro_use] extern crate rocket; use rocket::serde::json::Json; -use crate::mdstat_parser::{MdRaidSystem, parse_mdstat}; +use crate::parser::mdstat_parser::{MdRaidSystem, parse_mdstat}; #[get("/raiddevices")] fn get_raid_devices() -> Json { diff --git a/src/mdstat_parser.rs b/src/parser/mdstat_parser.rs similarity index 100% rename from src/mdstat_parser.rs rename to src/parser/mdstat_parser.rs diff --git a/src/parser/mod.rs b/src/parser/mod.rs new file mode 100644 index 0000000..c9559f7 --- /dev/null +++ b/src/parser/mod.rs @@ -0,0 +1 @@ +pub mod mdstat_parser; \ No newline at end of file