add coveralls

pull/61/head
Viktor Stanchev 2015-09-11 22:22:36 -07:00
parent 917dd75cf2
commit 8111eadd20
4 changed files with 11 additions and 4 deletions

View File

@ -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.

View File

@ -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

View File

@ -1,2 +1,3 @@
-r requirements.txt
coverage
coveralls

View File

@ -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',
)