Virustotal integration for amavisd-new
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.

Makefile 1.1KB

  1. TARGET?=tests
  2. VERSION := $(shell grep -Po '"(.*)"' amavisvt/ | sed -e 's/"//g')
  3. test_default_python:
  4. PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v
  5. test_py2:
  6. @echo Executing test with python2
  7. PYTHONPATH="." python2 -m pytest tests/ --junit-xml testresults.xml -rxsw -v
  8. test_py3:
  9. @echo Executing test with python3
  10. PYTHONPATH="." python3 -m pytest tests/ --junit-xml testresults.xml -rxsw -v
  11. test: test_py2 test_py3
  12. compile:
  13. @echo Compiling python code
  14. python -m compileall amavisvt/
  15. compile_optimized:
  16. @echo Compiling python code optimized
  17. python -O -m compileall amavisvt/
  18. coverage:
  19. coverage erase
  20. PYTHONPATH="." coverage run --source='amavisvt' --branch -m py.test -qq tests/
  21. coverage xml -i
  22. coverage report -m
  23. sonar:
  24. /usr/local/bin/sonar-scanner/bin/sonar-scanner -Dsonar.projectVersion=$(VERSION)
  25. clean:
  26. find -name "*.py?" -delete
  27. rm -f coverage.xml testresults.xml .coverage
  28. rm -fr htmlcov dist build .cache amavisvt.egg-info
  29. travis: compile compile_optimized test_default_python coverage
  30. jenkins: travis sonar