Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
more setup scripts adding coveragerc as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolm Jones committed May 1, 2014
1 parent f09f80a commit 084dfe9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[report]
omit =
*/pyshared/*
*/python?.?/*
*/site-packages/nose/*
*/test/*
exclude_lines =
assert False
raise NotImplementedError
if __name__ == .__main__.:
24 changes: 20 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
language: python
python:
- "2.7"

matrix:
include:
- python: 2.7
env: {TOX_ENV: py27, COVERAGE: 1}
- python: pypy
env: {TOX_ENV: pypy}
- python: 2.7
env: {TOX_ENV: docs}
- python: 2.7
env: {TOX_ENV: flake8}

before_install:
- sudo apt-get install swig
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -qq bash-completion swig
- travis_retry pip install tox sphinx
- "[ ! -z $COVERAGE ] && pip install coveralls || true"

install: pip install --allow-all-external -r requirements.txt
script: python tests/test_scarlett.py unit
script: tox -e $TOX_ENV

#script: python tests/test_scarlett.py unit
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ scarlett
.. image:: https://pypip.in/d/scarlett/badge.png
:target: https://pypi.python.org/pypi/scarlett

.. image:: https://coveralls.io/repos/bossjones/scarlett/badge.png?branch=master
:target: https://coveralls.io/r/bossjones/scarlett?branch=master


S.C.A.R.L.E.T.T is Tony Darks artificially programmed intelligent computer. It is programmed to speak with a female voice in a British accent.

Expand Down
3 changes: 2 additions & 1 deletion scarlett/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
import logging
import logging.config
import urlparse
#from scarlett.errors
import scarlett.errors
import pprint

__author__ = 'Malcolm Jones'
__email__ = '@bossjones'
Expand Down
15 changes: 14 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
[wheel]
universal = 1
universal = 1

[nosetests]
verbosity=1
logging-clear-handlers=1

[flake8]
# E241 missing whitespace after ',' (used to align visually)
# E221 multiple spaces before operator (used to align visually)
ignore=E241,E221

# List of files that have not been cleand up yet. We will try to reduce
# this with each commit
# exclude=test/test_config_command.py,test/test_files.py,test/test_art.py,test/test_dbcore.py,test/test_web.py,test/test_zero.py,test/rsrc/beetsplug/test.py,test/test_template.py,test/test_echonest.py,test/test_datequery.py,test/test_mb.py,test/test_convert.py,test/testall.py,test/test_player.py,test/test_query.py,test/test_mediafile.py,test/test_keyfinder.py,test/test_the.py,test/test_library.py,test/test_lyrics.py,test/test_ihate.py,test/test_vfs.py,test/test_replaygain.py,test/__init__.py,test/_common.py,test/test_mediafile_edge.py,test/test_ui.py

0 comments on commit 084dfe9

Please sign in to comment.