mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-23 21:39:51 -04:00
Compare commits
10 Commits
4ae7f357c1
...
80b17c1cb6
Author | SHA1 | Date | |
---|---|---|---|
80b17c1cb6 | |||
8e7895cdbc | |||
240149caba | |||
2bd4b1ff83 | |||
57b1681933 | |||
76b4d46222 | |||
fa5c2c2d58 | |||
65b0fc4bba | |||
d09e8d4902 | |||
d93f0ec90c |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/target
|
/target
|
||||||
result/
|
result/
|
||||||
*.json
|
*.json
|
||||||
|
tarpaulin-report.*
|
||||||
|
23
Makefile
Normal file
23
Makefile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
||||||
|
rust_files=$(call rwildcard,src,*.rs)
|
||||||
|
|
||||||
|
test: $(rust-files)
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
build: $(rust-files)
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
tarpaulin-report.%: $(rust_files)
|
||||||
|
cargo tarpaulin --skip-clean --test --out $*
|
||||||
|
|
||||||
|
cover: tarpaulin-report.html
|
||||||
|
|
||||||
|
view-cover: tarpaulin-report.html
|
||||||
|
open $<
|
||||||
|
|
||||||
|
clean-tarpaulin:
|
||||||
|
rm -f tarpaulin-report.*
|
||||||
|
|
||||||
|
clean: clean-tarpaulin
|
||||||
|
cargo clean
|
||||||
|
|
@ -37,7 +37,7 @@
|
|||||||
rust-bin = pkgs.rust-bin;
|
rust-bin = pkgs.rust-bin;
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [ gnumake my-rust-bin rust-analyzer ];
|
nativeBuildInputs = with pkgs; [ gnumake my-rust-bin rust-analyzer cargo-tarpaulin ];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user