Add coverage and coveralls back to tox and travis.

This commit is contained in:
baztian
2017-03-10 11:13:38 +01:00
parent 4ef125e6b1
commit c150bb8290
3 changed files with 21 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/env/python
"""Runs coveralls if in Travis CI build environment. Taken from
http://stackoverflow.com/a/33012308/1960601
"""
import os
from subprocess import call
if __name__ == '__main__':
if 'TRAVIS' in os.environ:
rc = call('coveralls')
raise SystemExit(rc)