From b67480f614da5e4d8c29ea8049472283bd494bb9 Mon Sep 17 00:00:00 2001 From: Tarek Ziade Date: Tue, 7 Mar 2017 09:44:42 +0100 Subject: [PATCH] omit coveralls when flake8 runs --- .travis.yml | 2 +- run_coveralls.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 run_coveralls.py diff --git a/.travis.yml b/.travis.yml index 68df1a6..f445e34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ install: script: tox -e $TOX_ENV after_success: - pip install coveralls - - coveralls \ No newline at end of file + - python {toxinidir}/run_coveralls.py \ No newline at end of file diff --git a/run_coveralls.py b/run_coveralls.py new file mode 100644 index 0000000..a1b96d3 --- /dev/null +++ b/run_coveralls.py @@ -0,0 +1,11 @@ +#!/bin/env/python +import os +from subprocess import call + + +if __name__ == '__main__': + travis = 'TRAVIS' in os.environ + py35 = os.environ.get('TOX_ENV') == 'py35' + + if travis and py35: + raise SystemExit(call('coveralls'))