July 2017
Beginner to intermediate
340 pages
7h 43m
English
Another popular service you can hook in your repository if you use Travis-CI and GitHub or Bitbucket is Coveralls (https://coveralls.io/). This service displays your test code coverage in a nice web UI.
Once you've added your repository in your Coveralls account, you can trigger a call to ;http://coveralls.io directly from Travis-CI by instructing Tox to ping to ;http://coveralls.io after the tests are run.
The changes in the tox.ini file are done in the [testenv] section in bold.
[testenv] passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH deps = pytest pytest-cov coveralls -rrequirements.txt commands =. pytest --cov-config .coveragerc --cov myservice myservice/tests - coveralls
The coveralls-python package (called Coveralls ...