Improve test commands
This commit is contained in:
parent
9291ab2689
commit
aca996df98
|
@ -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:
|
||||
|
|
13
Makefile
13
Makefile
|
@ -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/* && \
|
||||
|
|
Loading…
Reference in New Issue