diff --git a/.circleci/config.yml b/.circleci/config.yml index e5e5ed8..4f751b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,6 +37,7 @@ jobs: - run: command: | sudo pip install -r requirements.txt - sudo pip install pytest - python -m pytest ./tests/unit - name: Unit tests \ No newline at end of file + sudo pip install pytest pytest-cov python-coveralls + pytest ./tests --cov=.coverage + coveralls + name: Tests \ No newline at end of file diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..28be1c4 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: circle-ci +parallel: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index c4063f6..b1bab38 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tmp .key* *.pyc .pytest_cache +.coverage \ No newline at end of file diff --git a/README.md b/README.md index b9b4b19..330d20f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Total alerts](https://img.shields.io/lgtm/alerts/g/Klemek/meme-otron.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Klemek/meme-otron/alerts/) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Klemek/meme-otron.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Klemek/meme-otron/context:python) +[![Coverage Status](https://coveralls.io/repos/github/Klemek/meme-otron/badge.svg?branch=master)](https://coveralls.io/github/Klemek/meme-otron?branch=master) + # Meme-Otron *When making a meme need to be instantaneous*