diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-01-24 23:34:20 +0100 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-01-24 23:34:20 +0100 |
commit | 44c7a2575d2363c4b45f389a0bb2251e2f2f6685 (patch) | |
tree | 92668b3d4f01334d596a63ac2a7886fa5054dc21 | |
parent | 3db48dfd834531d8d66751dfc7ff7bd289f2ef0d (diff) | |
download | bvg-grabber-44c7a2575d2363c4b45f389a0bb2251e2f2f6685.tar.gz bvg-grabber-44c7a2575d2363c4b45f389a0bb2251e2f2f6685.tar.bz2 bvg-grabber-44c7a2575d2363c4b45f389a0bb2251e2f2f6685.zip |
Add coverage for travis
-rw-r--r-- | .coveragerc | 2 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .travis.yml | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..dc4fd82 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source=bvggrabber @@ -14,6 +14,7 @@ develop-eggs .installed.cfg lib lib64 +.coverage # Installer logs pip-log.txt diff --git a/.travis.yml b/.travis.yml index b4a1dad..8b9a2e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ python: - "3.2" - "3.3" # command to install dependencies -install: "pip install -r requirements.txt --use-mirrors" +install: + - pip install -r requirements.txt --use-mirrors + - pip install coverage # command to run tests -script: python -m unittest tests +script: coverage run -m unittest -v tests/test_*.py && coverage report -m |