Fix coveralls run on Python 2.6. Skip coveralls for Jython.

This commit is contained in:
baztian
2017-03-10 11:27:55 +01:00
parent c150bb8290
commit 4c6efb7113
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -5,11 +5,15 @@ http://stackoverflow.com/a/33012308/1960601
"""
import os
import sys
from subprocess import call
if __name__ == '__main__':
if sys.platform.lower().startswith('java'):
print("Export to coveralls skipped for Jython")
sys.exit(0)
if 'TRAVIS' in os.environ:
rc = call('coveralls')
raise SystemExit(rc)