From 8111eadd202804fb17faad32553dc9ec1d19a1ac Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Fri, 11 Sep 2015 22:22:36 -0700 Subject: [PATCH] add coveralls --- README.md | 3 +-- circle.yml | 7 ++++++- requirements-test.txt | 1 + setup.py | 4 +++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f6428e5..1ab6daa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # pirate-get -[![Circle CI](https://circleci.com/gh/vikstrous/pirate-get/tree/master.svg?style=shield)](https://circleci.com/gh/vikstrous/pirate-get/tree/master) - +[![Circle CI](https://circleci.com/gh/vikstrous/pirate-get/tree/master.svg?style=shield)](https://circleci.com/gh/vikstrous/pirate-get/tree/master) [![Coverage Status](https://coveralls.io/repos/vikstrous/pirate-get/badge.svg?branch=master&service=github)](https://coveralls.io/github/vikstrous/pirate-get?branch=master) pirate-get is a convenient command line tool (inspired by APT) to speed up your trip to the Pirate Bay and get your completely legal torrents more quickly. diff --git a/circle.yml b/circle.yml index 068fc36..5dd274a 100644 --- a/circle.yml +++ b/circle.yml @@ -1,10 +1,15 @@ machine: python: version: 3.4.2 +dependencies: + override: + - pip install -r requirements-test.txt + - python setup.py install test: override: - coverage run -m unittest discover post: - mkdir -p $CIRCLE_ARTIFACTS/coverage - - cd /home/ubuntu/pirate-get && coverage html --include=`pwd`* --omit="*/tests/*,*migrations*,*__init__*" + - cd /home/ubuntu/pirate-get && coverage html --include=`pwd`* - cp -R /home/ubuntu/pirate-get/htmlcov/* $CIRCLE_ARTIFACTS/coverage + - coveralls diff --git a/requirements-test.txt b/requirements-test.txt index 13e2a80..5dba4b8 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,3 @@ -r requirements.txt coverage +coveralls diff --git a/setup.py b/setup.py index 42707ef..9c16ae2 100755 --- a/setup.py +++ b/setup.py @@ -21,4 +21,6 @@ setup(name='pirate-get', 'Topic :: System :: Networking', 'Programming Language :: Python :: 3 :: Only', 'License :: OSI Approved :: GNU General Public License (GPL)', - ]) + ], + test_suite='tests', +)