2020-12-02 11:07:19 +01:00
|
|
|
os: linux
|
2016-12-10 19:27:50 +01:00
|
|
|
language: python
|
2020-12-02 11:07:19 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CC_TEST_REPORTER_ID=40cb00907f7a10e04868e856570bb997ab9c42fd3b63d980f2b2269433195fdf
|
2016-12-10 19:27:50 +01:00
|
|
|
python:
|
2016-12-10 19:55:40 +01:00
|
|
|
- "3.4"
|
|
|
|
- "3.5"
|
2017-02-25 07:27:06 +01:00
|
|
|
- "3.6"
|
2020-01-26 14:11:58 +01:00
|
|
|
- "3.7"
|
2020-11-29 22:14:33 +01:00
|
|
|
- "3.8"
|
|
|
|
- "3.9"
|
2020-12-02 11:07:19 +01:00
|
|
|
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
|
2020-12-03 06:54:44 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
libdbus-1-dev
|
2016-12-10 19:32:22 +01:00
|
|
|
install:
|
2020-12-02 11:07:19 +01:00
|
|
|
- pip install -U coverage pytest pytest-mock freezegun
|
2020-12-03 20:48:06 +01:00
|
|
|
- pip install $(cat requirements/modules/*.txt | cut -d ' ' -f 1 | sort -u|grep -v dbus-python|grep -v libvirt-python)
|
2016-12-11 13:24:37 +01:00
|
|
|
script:
|
2020-06-20 14:53:44 +02:00
|
|
|
- coverage run --source=. -m pytest tests -v
|
2020-12-02 11:07:19 +01:00
|
|
|
after_script:
|
|
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|