parent
6acbb4ad62
commit
e2493e7b19
|
@ -1,4 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This hook lints the code, and if we're on develop or master, also forces the tests to pass.
|
||||||
|
|
||||||
|
|
||||||
|
branch=`git rev-parse --abbrev-ref HEAD`
|
||||||
|
|
||||||
# Just lint the code before committing
|
# Just lint the code before committing
|
||||||
make lint
|
make lint
|
||||||
|
|
||||||
|
# TODO should we add release branches here as well?
|
||||||
|
if [[ "$branch" =~ ^master|develop$ ]]; then
|
||||||
|
make test
|
||||||
|
fi
|
||||||
|
|
Reference in New Issue