diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2020-06-17 20:10:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-17 20:10:47 -0400 |
| commit | 4c765547fb6ff0697d11d0162c0bd3d7f5655ce5 (patch) | |
| tree | ce6638a29c178650c18037df4214809d13b13702 /.git-hooks/pre-commit | |
| parent | ff759a078975de54ffee4383912834393bd9a0a3 (diff) | |
| parent | 0b669acac07a2b325316a46cca01a5cb85eede3b (diff) | |
Merge pull request #6 from ojacobson/travis-githooks
Provide a git hook to automate tests.
Diffstat (limited to '.git-hooks/pre-commit')
| -rwxr-xr-x | .git-hooks/pre-commit | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit new file mode 100755 index 0000000..7fd95fb --- /dev/null +++ b/.git-hooks/pre-commit @@ -0,0 +1,8 @@ +#!/bin/bash -e + +# dup of the list in .travis.yml +cargo build --locked +cargo test +cargo fmt -- --check +cargo clippy -- --deny warnings +cargo udeps --locked --all-targets |
