diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2020-06-17 23:45:48 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2020-06-17 23:58:31 -0400 |
| commit | e344f6c6245fe1121976b407a989af86c7453dad (patch) | |
| tree | 49f0290591c0c48d69607656db3a6f1f10323e7a /.git-hooks | |
| parent | 3ccaa5f22c66874b274506fe784939806fb0f2db (diff) | |
Extracted checks into a tools directory.
Having the checks duplicated between .git-hooks and .travis.yml was a
recipe for them to diverge eventually. This is somewhat tidier, and
creates a clear convention for any future tools-like scripts.
I didn't do the same to install steps, as they're a lot more sensitive to the
specific environment - Travis requires different things from Github, which
requires different things from CircleCI, which requires different things from a
local environment.
Diffstat (limited to '.git-hooks')
| -rwxr-xr-x | .git-hooks/pre-commit | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 7fd95fb..186a6e1 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -1,8 +1,3 @@ #!/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 +exec tools/checks |
