diff --git a/.appveyor.yml b/.appveyor.yml index 407668b..285081f 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,16 +21,14 @@ environment: PYTHON_VERSION: "3.6.x" PYTHON_ARCH: "64" TOXENV: "py36" - COVERALLS_REPO_TOKEN: - secure: dKqk1ANtaVDw/njiGRw+qYq3tWywjoZDs3duK2VaNRF0AAAnSBK5RGbvKSTpl/Xk install: - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - - "python --version" - - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - "pip install --disable-pip-version-check --user --upgrade pip" - - "%CMD_IN_ENV% pip install tox coverage coveralls" + - "%CMD_IN_ENV% pip install tox" test_script: - # Run the project tests - "%CMD_IN_ENV% tox" + +on_success: + - "%CMD_IN_ENV% codecov" diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..75c71ea --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = pydu + +[paths] +source = + pydu + .tox/*/lib/python*/site-packages/pydu \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index e99a0c8..49f3b15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,11 +10,14 @@ sudo: false cache: pip install: - - pip install tox-travis + - pip install tox script: - tox +after_success: + - codecov + notifications: email: recipients: diff --git a/requirements-dev.txt b/requirements-dev.txt index 94a7a0d..02ac8b4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ pytest>=2.8.0 pytest-xdist -coveralls +codecov HTTPretty==0.8.14 diff --git a/tox.ini b/tox.ini index 99ca208..d8c9de1 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,6 @@ envlist = py27,py34,py35,py36 [testenv] -passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH deps=-rrequirements-dev.txt commands= - coverage run --source=pydu -m pytest tests - coveralls + python setup.py test