From b32cd19266da04c2b1b7078fbd6476f0499197e5 Mon Sep 17 00:00:00 2001 From: Stefan Wojcik Date: Sat, 10 Dec 2016 20:57:43 -0500 Subject: [PATCH] setup.cfg cleanup + only run coveralls on py27 --- .travis.yml | 6 +++++- setup.cfg | 9 +++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d57eb94..cb6c97e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,11 @@ before_script: script: - tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage -after_script: coveralls --verbose +# For now only submit coveralls for Python v2.7. Python v3.x currently shows +# 0% coverage. That's caused by 'use_2to3', which builds the py3-compatible +# code in a separate dir and runs tests on that. +after_script: +- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls --verbose; fi notifications: irc: irc.freenode.org#mongoengine diff --git a/setup.cfg b/setup.cfg index 756e4bcd..76a9d6e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,10 +1,7 @@ [nosetests] -verbosity = 2 -detailed-errors = 1 -cover-erase = 1 -cover-branches = 1 -cover-package = mongoengine -tests = tests +verbosity=2 +detailed-errors=1 +tests=tests [flake8] ignore=E501,F401,F403,F405,I201