Python client for The TVDB REST API
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.
 
 

43 lines
983 B

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