Commits

Matthew Schinckel committed b68e3c6

Add a drone.io-style coverage badge (only goes down to 47% atm).

Comments (0)

Files changed (57)

 include django_coverage/utils/module_tools/*.py
 include django_coverage/utils/coverage_report/*.py
 include django_coverage/utils/coverage_report.templates/*.py
+include django_coverage/utils/coverage_report/badges/*.png
 

django_coverage/utils/coverage_report/badges/100.png

Added
New image

django_coverage/utils/coverage_report/badges/47.png

Added
New image

django_coverage/utils/coverage_report/badges/48.png

Added
New image

django_coverage/utils/coverage_report/badges/49.png

Added
New image

django_coverage/utils/coverage_report/badges/50.png

Added
New image

django_coverage/utils/coverage_report/badges/51.png

Added
New image

django_coverage/utils/coverage_report/badges/52.png

Added
New image

django_coverage/utils/coverage_report/badges/53.png

Added
New image

django_coverage/utils/coverage_report/badges/54.png

Added
New image

django_coverage/utils/coverage_report/badges/55.png

Added
New image

django_coverage/utils/coverage_report/badges/56.png

Added
New image

django_coverage/utils/coverage_report/badges/57.png

Added
New image

django_coverage/utils/coverage_report/badges/58.png

Added
New image

django_coverage/utils/coverage_report/badges/59.png

Added
New image

django_coverage/utils/coverage_report/badges/60.png

Added
New image

django_coverage/utils/coverage_report/badges/61.png

Added
New image

django_coverage/utils/coverage_report/badges/62.png

Added
New image

django_coverage/utils/coverage_report/badges/63.png

Added
New image

django_coverage/utils/coverage_report/badges/64.png

Added
New image

django_coverage/utils/coverage_report/badges/65.png

Added
New image

django_coverage/utils/coverage_report/badges/66.png

Added
New image

django_coverage/utils/coverage_report/badges/67.png

Added
New image

django_coverage/utils/coverage_report/badges/68.png

Added
New image

django_coverage/utils/coverage_report/badges/69.png

Added
New image

django_coverage/utils/coverage_report/badges/70.png

Added
New image

django_coverage/utils/coverage_report/badges/71.png

Added
New image

django_coverage/utils/coverage_report/badges/72.png

Added
New image

django_coverage/utils/coverage_report/badges/73.png

Added
New image

django_coverage/utils/coverage_report/badges/74.png

Added
New image

django_coverage/utils/coverage_report/badges/75.png

Added
New image

django_coverage/utils/coverage_report/badges/76.png

Added
New image

django_coverage/utils/coverage_report/badges/77.png

Added
New image

django_coverage/utils/coverage_report/badges/78.png

Added
New image

django_coverage/utils/coverage_report/badges/79.png

Added
New image

django_coverage/utils/coverage_report/badges/80.png

Added
New image

django_coverage/utils/coverage_report/badges/81.png

Added
New image

django_coverage/utils/coverage_report/badges/82.png

Added
New image

django_coverage/utils/coverage_report/badges/83.png

Added
New image

django_coverage/utils/coverage_report/badges/84.png

Added
New image

django_coverage/utils/coverage_report/badges/85.png

Added
New image

django_coverage/utils/coverage_report/badges/86.png

Added
New image

django_coverage/utils/coverage_report/badges/87.png

Added
New image

django_coverage/utils/coverage_report/badges/88.png

Added
New image

django_coverage/utils/coverage_report/badges/89.png

Added
New image

django_coverage/utils/coverage_report/badges/90.png

Added
New image

django_coverage/utils/coverage_report/badges/91.png

Added
New image

django_coverage/utils/coverage_report/badges/92.png

Added
New image

django_coverage/utils/coverage_report/badges/93.png

Added
New image

django_coverage/utils/coverage_report/badges/94.png

Added
New image

django_coverage/utils/coverage_report/badges/95.png

Added
New image

django_coverage/utils/coverage_report/badges/96.png

Added
New image

django_coverage/utils/coverage_report/badges/97.png

Added
New image

django_coverage/utils/coverage_report/badges/98.png

Added
New image

django_coverage/utils/coverage_report/badges/99.png

Added
New image

django_coverage/utils/coverage_report/html_report.py

         html_module_errors(os.path.join(outdir, _file), errors)
     print >>fo, module_index.BOTTOM
     fo.close()
+    
+    badge = open(os.path.join(os.path.dirname(__file__), 'badges', '%s.png' % int(overall_covered))).read()
+    open(os.path.join(outdir, 'coverage_status.png'), 'wb').write(badge)
 
                 'django_coverage.utils.module_tools',
                 'django_coverage.utils.coverage_report',
                 'django_coverage.utils.coverage_report.templates'],
+      package_data={'djang_coverage': ['django_coverage/utils/coverage_report/badges/*.png']},
 
       requires = ['django (>=1.2)', 'coverage (>= 2.85)'],