Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Boeckenhoff
tfields
Commits
6a7107c3
Commit
6a7107c3
authored
Jul 09, 2018
by
Daniel Boeckenhoff
Browse files
pre-push tests implemeneted
parent
8b7d8043
Changes
1
Hide whitespace changes
Inline
Side-by-side
.githooks/pre-push
View file @
6a7107c3
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment