parent
e6e34bb3f5
commit
f1981e413d
@ -0,0 +1,11 @@ |
||||
[package] |
||||
name = "badcontext" |
||||
version = "0.1.0-SNAPSHOT" |
||||
authors = ["brnrs <brnrs@brnrs.pl>"] |
||||
edition = "2018" |
||||
description = "A small crate for creating Context structs that contain application components" |
||||
license = "MIT" |
||||
repository = "https://git.brnrs.pl/brnorg/badcontext" |
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
||||
|
||||
[dependencies] |
@ -0,0 +1,20 @@ |
||||
pipeline { |
||||
agent any |
||||
stages { |
||||
stage('update-rust') { |
||||
steps { |
||||
sh 'rustup update' |
||||
} |
||||
} |
||||
stage('build') { |
||||
steps { |
||||
sh 'cargo build --release --verbose' |
||||
} |
||||
} |
||||
stage('test') { |
||||
steps { |
||||
sh 'cargo test --release --verbose' |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
#[cfg(test)] |
||||
mod tests { |
||||
#[test] |
||||
fn it_works() { |
||||
assert_eq!(2 + 2, 4); |
||||
} |
||||
} |
Loading…
Reference in new issue