Improve test commands

This commit is contained in:
David Cramer 2012-11-23 13:04:13 -08:00
parent 9291ab2689
commit aca996df98
2 changed files with 12 additions and 3 deletions

View File

@ -10,8 +10,8 @@ env:
install:
- sudo apt-get install libevent-dev
- pip install Django==$DJANGO --use-mirrors
- pip install flake8 --use-mirrors
- pip install -e . --use-mirrors
- make bootstrap-tests
script:
- make test
notifications:

View File

@ -1,6 +1,15 @@
test:
bootstrap-tests:
pip install flake8>=1.6 --use-mirrors
test: lint
@echo "Running Python tests"
python setup.py -q test || exit 1
@echo ""
lint:
@echo "Linting Python files"
flake8 --exclude=migrations --ignore=E501,E225,E121,E123,E124,E125,E127,E128 --exit-zero raven || exit 1
python setup.py test
@echo ""
coverage:
coverage run runtests.py --include=raven/* && \