Commit 6a7107c3 authored by Daniel Boeckenhoff's avatar Daniel Boeckenhoff
Browse files

pre-push tests implemeneted

parent 8b7d8043
......@@ -11,27 +11,21 @@
# stash any unstaged changes
# git stash --keep-index -q
#
# # run the tests
# run the tests in python2
echo "running pre-push tests ..."
# python tfields test &> /tmp/git-pre-push-tests.log
# # python -m unittest discover -s test -p 'unitTest_*py' &> /tmp/git-pre-commit-tests.log
# # ./run_tests.sh &> /tmp/git-pre-commit-tests.log
#
# # store the last exit code in a variable
# RESULT=$?
#
# # unstash the stashed changes
# git stash pop -q
#
# if [ $RESULT -ne 0 ]
# then
# echo "Test failed! Log record at /tmp/git-pre-push-tests.log"
# else
# echo "... OK"
# fi
#
# # return the './gradlew test' exit code
# exit $RESULT
exit 0
python tfields test &> /tmp/git-pre-push-tests.log
# store the last exit code in a variable
RESULT=$?
if [ $RESULT -ne 0 ]
then
echo "Test failed! Log record at /tmp/git-pre-push-tests.log"
exit $RESULT
else
echo "... OK"
fi
# return the './gradlew test' exit code
exit $RESULT
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