add start of tools crate
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
e1050787db
commit
1e0f54dc49
14
.drone.yml
14
.drone.yml
|
@ -31,3 +31,17 @@ volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
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
|
||||||
|
|
|
@ -34,7 +34,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in pkgs.dockerTools.buildLayeredImage {
|
in pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "xena/lewa-book";
|
name = "xena/lewa-book:${book.version}";
|
||||||
contents = [ book nur.repos.xe.quickserv ];
|
contents = [ book nur.repos.xe.quickserv ];
|
||||||
config.Cmd = [ "/bin/quickserv" "-port=9001" "-dir=/book" ];
|
config.Cmd = [ "/bin/quickserv" "-port=9001" "-dir=/book" ];
|
||||||
}
|
}
|
||||||
|
|
12
shell.nix
12
shell.nix
|
@ -9,13 +9,23 @@ let
|
||||||
tex = pkgs.callPackage ./nix/texlive.nix { };
|
tex = pkgs.callPackage ./nix/texlive.nix { };
|
||||||
in pkgs.mkShell {
|
in pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
|
# deployment tools
|
||||||
dyson
|
dyson
|
||||||
kindlegen
|
|
||||||
kubectl
|
kubectl
|
||||||
kubectx
|
kubectx
|
||||||
|
|
||||||
|
# book tooks
|
||||||
|
kindlegen
|
||||||
mdbook
|
mdbook
|
||||||
nur.repos.mic92.pandoc-bin
|
nur.repos.mic92.pandoc-bin
|
||||||
tex
|
tex
|
||||||
|
|
||||||
|
# preview
|
||||||
nur.repos.xe.zathura
|
nur.repos.xe.zathura
|
||||||
|
|
||||||
|
# rust
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
rls
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/target
|
|
@ -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"
|
|
@ -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]
|
|
@ -0,0 +1,7 @@
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
assert_eq!(2 + 2, 4);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue