Commit 33023596 authored by Robert Czechowski's avatar Robert Czechowski

Add pre-commit hook to check code formatting, install script for git hooks

parent bad536ad
Pipeline #1066 passed with stages
in 26 minutes and 39 seconds
......@@ -32,3 +32,6 @@ doc: src/db_conn_postgres.rs
grcov: src/db_conn_postgres.rs
CARGO_INCREMENTAL=0 RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" RUSTDOCFLAGS="-Cpanic=abort" cargo +nightly test
grcov ./target/debug/ -s . -t html --llvm --branch --ignore-not-existing -o ./target/debug/coverage/
hooks:
tools/install-hooks.sh
#!/bin/sh
rm -f .git/hooks/pre-commit
ln -s ../../tools/pre-commit .git/hooks/pre-commit
#!/bin/sh
cargo +nightly fmt -- --check
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment