[travis/code climate] update to new reporter + small fixes

This commit is contained in:
tobi-wan-kenobi 2020-12-02 11:07:19 +01:00
parent a8d1254e06
commit 2de39be731

View file

@ -1,5 +1,9 @@
sudo: false dist: xenial
os: linux
language: python language: python
env:
global:
- CC_TEST_REPORTER_ID=40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf
python: python:
- "3.4" - "3.4"
- "3.5" - "3.5"
@ -7,12 +11,15 @@ python:
- "3.7" - "3.7"
- "3.8" - "3.8"
- "3.9" - "3.9"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
before_install: before_install:
- sudo apt-get -qq update - apt-get -qq update
install: install:
- sudo apt-get install python-dbus - apt-get install python-dbus
- pip install -U coverage==4.3 pytest pytest-mock freezegun - pip install -U coverage pytest pytest-mock freezegun
- pip install codeclimate-test-reporter
- pip install i3-py Pillow Babel DateTime python-dateutil - pip install i3-py Pillow Babel DateTime python-dateutil
- pip install docker feedparser==6.0.0b1 i3ipc - pip install docker feedparser==6.0.0b1 i3ipc
- pip install netifaces power - pip install netifaces power
@ -22,7 +29,5 @@ install:
- pip install tzlocal - pip install tzlocal
script: script:
- coverage run --source=. -m pytest tests -v - coverage run --source=. -m pytest tests -v
- CODECLIMATE_REPO_TOKEN=40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf codeclimate-test-reporter after_script:
addons: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
code_climate:
repo_token: 40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf