diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..022b07c Binary files /dev/null and b/.coverage differ diff --git a/.travis.yml b/.travis.yml index b8c5696..49db146 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,15 @@ python: - "2.7" - "3.4" -script: nosetests +install: + - pip install -r requirements.txt + +# Only track coverage using the 2.7 job +script: + - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then nosetests + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then nosetests --with-coverage + +after_success: + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls + +sudo: false diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6103052 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +coveralls +coverage