add start of tools crate
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Cadey Ratio 2020-05-06 09:26:05 -04:00
parent e1050787db
commit 1e0f54dc49
7 changed files with 48 additions and 2 deletions

View File

@ -31,3 +31,17 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock
---
kind: pipeline
name: tools
workspace:
base: /lewa
steps:
- name: rust tests
image: "rust:1"
pull: always
commands:
- cd tools && cargo test

View File

@ -34,7 +34,7 @@ let
'';
};
in pkgs.dockerTools.buildLayeredImage {
name = "xena/lewa-book";
name = "xena/lewa-book:${book.version}";
contents = [ book nur.repos.xe.quickserv ];
config.Cmd = [ "/bin/quickserv" "-port=9001" "-dir=/book" ];
}

View File

@ -9,13 +9,23 @@ let
tex = pkgs.callPackage ./nix/texlive.nix { };
in pkgs.mkShell {
buildInputs = with pkgs; [
# deployment tools
dyson
kindlegen
kubectl
kubectx
# book tooks
kindlegen
mdbook
nur.repos.mic92.pandoc-bin
tex
# preview
nur.repos.xe.zathura
# rust
cargo
rustc
rls
];
}

1
tools/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

5
tools/Cargo.lock generated Normal file
View File

@ -0,0 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "lewa"
version = "0.1.0"

9
tools/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "lewa"
version = "0.1.0"
authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

7
tools/src/lib.rs Normal file
View File

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