diff --git a/.travis.yml b/.travis.yml index db77ab2..ece1c80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,6 @@ matrix: python: "3.6" - dist: xenial python: "3.7" -install: pip install tox-travis +install: pip install tox-travis coveralls script: tox +after_success: coveralls diff --git a/README.md b/README.md index 99a60f0..d69403f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ # Operators Manifests Push Service (OMPS) + +[![Build Status](https://travis-ci.com/release-engineering/operators-manifests-push-service.svg?branch=master)](https://travis-ci.com/release-engineering/operators-manifests-push-service) +[![Coverage Status](https://coveralls.io/repos/github/release-engineering/operators-manifests-push-service/badge.svg?branch=master)](https://coveralls.io/github/release-engineering/operators-manifests-push-service?branch=master) + Service for pushing operators manifests to quay.io from various sources. ## Settings diff --git a/setup.py b/setup.py index 56d2983..e9a7acf 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ extras_require={ 'test': [ 'pytest', + 'pytest-cov', 'requests-mock', 'flexmock', ], diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini index 8bcc683..1891658 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,9 @@ [tox] envlist = py36,py37 - [testenv] deps = .[test] +commands = pytest --cov=omps tests/ -commands = py.test tests/ +[coverage:report] +fail_under = 87