base

master
brnrs 5 years ago
parent e6e34bb3f5
commit f1981e413d
  1. 8
      .gitignore
  2. 11
      Cargo.toml
  3. 20
      Jenkinsfile
  4. 2
      LICENSE
  5. 7
      src/lib.rs

8
.gitignore vendored

@ -10,3 +10,11 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
#Added by cargo
#
#already existing elements were commented out
/target
#Cargo.lock

@ -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]

20
Jenkinsfile vendored

@ -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'
}
}
}
}

@ -1,4 +1,4 @@
MIT License Copyright (c) <year> <copyright holders>
MIT License Copyright (c) 2020 brnrs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
Loading…
Cancel
Save