Commit 24d0e5cc authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

CI: Enable coverage

parent 7576a834
Pipeline #7735 failed with stage
in 1 minute and 4 seconds
[run]
include = ./fountain/*
......@@ -28,5 +28,6 @@ py27_django111:
- "source ./py27_django111/bin/activate"
- "pip install -r ./tests/requirements-common.txt -U"
- "pip install -U 'Django>=1.11,<1.12'"
- "python ./runtests.py"
- "coverage run ./runtests.py"
- "./coverage-report.py"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import subprocess
p = subprocess.Popen(['coverage', 'report'], stdout=subprocess.PIPE)
out, err = p.communicate()
for line in out.splitlines():
print(line)
if line.startswith('TOTAL'):
total = line.split()
print("pycoverage: %s" %total[3])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment