2014-04-10 12:31:14 -04:00
|
|
|
#!/bin/bash
|
2014-04-01 16:16:24 -04:00
|
|
|
|
2014-06-05 16:55:52 -04:00
|
|
|
set -e # quit script on error
|
2014-04-01 16:16:24 -04:00
|
|
|
|
2014-05-29 21:43:16 -04:00
|
|
|
echo_header() {
|
2015-11-01 13:51:25 +01:00
|
|
|
{ echo -e "==============================================================================\n$1"; } 2>/dev/null
|
2014-05-29 21:43:16 -04:00
|
|
|
}
|
|
|
|
|
2014-06-02 13:21:54 -04:00
|
|
|
#------------------------------------------------------------------------------#
|
2014-06-16 19:18:28 -04:00
|
|
|
|
2024-12-25 17:50:49 +01:00
|
|
|
if [ ! -d tests ]; then
|
|
|
|
cd ..
|
2015-11-01 13:48:25 +01:00
|
|
|
fi
|
|
|
|
|
2015-11-01 13:52:16 +01:00
|
|
|
set -x # show each command as it is executed
|
2014-06-27 17:06:52 -04:00
|
|
|
|
2014-06-30 21:40:31 -04:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
echo_header "run commit hooks"
|
|
|
|
|
2019-07-03 19:39:52 +02:00
|
|
|
test -x ./hooks/pre-commit && ./hooks/pre-commit
|
2014-06-30 21:40:31 -04:00
|
|
|
|
2014-08-30 11:07:29 -04:00
|
|
|
#------------------------------------------------------------------------------#
|
2022-10-30 07:14:20 +01:00
|
|
|
echo_header "run unit tests"
|
2016-11-07 21:47:53 +01:00
|
|
|
|
2024-11-19 20:36:41 +01:00
|
|
|
python3 -m unittest -v
|
2014-08-30 11:07:29 -04:00
|
|
|
|
2014-04-23 19:21:22 -04:00
|
|
|
echo SUCCESS
|