diff --git a/.coveragerc b/.coveragerc index b802633..62d6d1c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,5 @@ [run] source = model_utils -omit = model_utils/tests/* - .* +omit = .* tests/* */_* -branch = 1 diff --git a/.travis.yml b/.travis.yml index 4e9f4c0..ccb420d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +sudo: false matrix: fast_finish: true @@ -48,7 +49,7 @@ matrix: env: TOXENV=py36-djangotrunk install: - - pip install --upgrade pip setuptools tox virtualenv coveralls + - pip install --upgrade pip setuptools tox virtualenv codecov - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYVER=py27; fi - if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then export PYVER=py34; fi - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PYVER=py35; fi @@ -56,4 +57,4 @@ install: script: COMMAND='coverage run' tox -e$TOXENV -after_success: coveralls +after_success: codecov diff --git a/tox.ini b/tox.ini index 807e0d4..91fb3a0 100644 --- a/tox.ini +++ b/tox.ini @@ -16,4 +16,4 @@ deps = djangotrunk: https://github.com/django/django/tarball/master freezegun == 0.3.8 -commands = coverage run -a runtests.py +commands = {env:COMMAND:python} runtests.py