You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

34 lines
748 B

TARGET?=test
#test:
# PYTHONPATH="." python manage.py test -v 2
test:
PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v
compile:
@echo Compiling python code
python -m compileall .
compile_optimized:
@echo Compiling python code optimized
python -O -m compileall .
coverage:
coverage erase
PYTHONPATH="." coverage run --source='.' --branch -m py.test -qq tests/
coverage xml -i
coverage report -m
clean:
find -name "*.py?" -delete
find -type d -name "__pycache__" -delete
rm -fr coverage.xml testresults.xml .coverage htmlcov dist *.egg-info
travis: compile compile_optimized test coverage
install_deps:
pip install -r requirements.txt
pip install -r requirements_dev.txt
jenkins: install_deps travis