Skip to content

Commit

Permalink
Modernize python versions on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jul 11, 2018
1 parent bd08cd7 commit 82d4a91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: python
python:
- 2.6
- 2.7
- 3.5
- 3.6
- pypy
script:
- pip install nose coverage pep8 setuptools-flakes
Expand Down
14 changes: 5 additions & 9 deletions pre-commit-check.sh
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

0 comments on commit 82d4a91

Please sign in to comment.