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.

35 lines
748B

  1. TARGET?=test
  2. #test:
  3. # PYTHONPATH="." python manage.py test -v 2
  4. test:
  5. PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v
  6. compile:
  7. @echo Compiling python code
  8. python -m compileall .
  9. compile_optimized:
  10. @echo Compiling python code optimized
  11. python -O -m compileall .
  12. coverage:
  13. coverage erase
  14. PYTHONPATH="." coverage run --source='.' --branch -m py.test -qq tests/
  15. coverage xml -i
  16. coverage report -m
  17. clean:
  18. find -name "*.py?" -delete
  19. find -type d -name "__pycache__" -delete
  20. rm -fr coverage.xml testresults.xml .coverage htmlcov dist *.egg-info
  21. travis: compile compile_optimized test coverage
  22. install_deps:
  23. pip install -r requirements.txt
  24. pip install -r requirements_dev.txt
  25. jenkins: install_deps travis