[travis] switch to coverage instead of nosetest

This commit is contained in:
Tobias Witek 2020-02-02 14:06:44 +01:00
parent 69eb1ada0d
commit 96c7b762b2
2 changed files with 3 additions and 2 deletions

View file

@ -19,8 +19,9 @@ install:
- pip install pytz - pip install pytz
- pip install tzlocal - pip install tzlocal
- pip install dbus-python - pip install dbus-python
- pip install coverage
script: script:
- nosetests -v --with-coverage --cover-erase tests/ - coverage run -m unittest discover -v
- CODECLIMATE_REPO_TOKEN=40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf codeclimate-test-reporter - CODECLIMATE_REPO_TOKEN=40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf codeclimate-test-reporter
addons: addons:
code_climate: code_climate:

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
coverage run -m unittest discover -v coverage run -m unittest discover -v
coverage run report coverage report -m