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

pre-push tests implemeneted

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