-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd08cd7
commit 82d4a91
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
#!/bin/bash | ||
# TODO: stash changes before doing tests: http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ | ||
|
||
function handle_exit { | ||
if [ $? -ne 0 ]; then | ||
EXITCODE=1 | ||
fi | ||
} | ||
set -xe | ||
|
||
echo '====== Running tests =========' | ||
bin/nosetests; handle_exit | ||
nosetests | ||
|
||
echo '====== Running PyFlakes ======' | ||
bin/python setup.py flakes; handle_exit | ||
python setup.py flakes | ||
|
||
echo '====== Running pep8 ==========' | ||
bin/pep8 src/pyramid_marrowmailer; handle_exit | ||
bin/pep8 *.py; handle_exit | ||
pep8 src/pyramid_marrowmailer | ||
pep8 *.py |