Python API for ELV MAX! Cube
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.

36 lines
776B

  1. TARGET?=tests
  2. test_default_python:
  3. PYTHONPATH=".:./src" python tests/ -v
  4. test_py2:
  5. @echo Executing test with python2
  6. PYTHONPATH=".:./src" python2 tests/ -v
  7. test_py3:
  8. @echo Executing test with python3
  9. PYTHONPATH=".:./src" python3 tests/ -v
  10. test: test_py2 test_py3
  11. compile:
  12. @echo Compiling python code
  13. python -m compileall src/
  14. compile_optimized:
  15. @echo Compiling python code optimized
  16. python -O -m compileall src/
  17. coverage:
  18. coverage erase
  19. PYTHONPATH=".:./src" coverage run --source='src' --omit='src/test.py,src/fakecube.py' --branch tests/__main__.py
  20. coverage report -m
  21. clean:
  22. find -name "*.py?" -delete
  23. rm -f coverage.xml .coverage*
  24. rm -f testresults.xml
  25. rm -fr htmlcov dist .cache
  26. travis: clean compile compile_optimized test_default_python coverage