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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

33 lines
815 B

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