Fuglu plugin for the Google Safebrowsing 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.

41 lines

  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 fuglu_safebrowsing
  14. compile_optimized:
  15. @echo Compiling python code optimized
  16. python -O -m compileall fuglu_safebrowsing
  17. coverage:
  18. coverage erase
  19. PYTHONPATH="." coverage run --source='fuglu_safebrowsing' --branch -m py.test -qq tests/
  20. coverage xml -i
  21. coverage report -m
  22. sonar:
  23. /usr/local/bin/sonar-scanner/bin/sonar-scanner
  24. clean:
  25. find -name "*.py?" -delete
  26. rm -f coverage.xml
  27. rm -f testresults.xml
  28. rm -fr htmlcov dist *.egg-info
  29. travis: compile compile_optimized test_default_python coverage
  30. jenkins: travis sonar