Fuglu plugin to log all mail information via GELF
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.
 
 
 

40 lines
973 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 .
  14. compile_optimized:
  15. @echo Compiling python code optimized
  16. python -O -m compileall .
  17. coverage:
  18. coverage erase
  19. PYTHONPATH="." coverage run --source='fuglugelf' --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 testresults.xml htmlcov dist *.egg-info
  27. rm -rfv bin include lib lib64 pip-selfcheck.json
  28. travis: compile compile_optimized test_default_python coverage
  29. jenkins: travis sonar