summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-03-10 08:39:39 +0530
committerGitHub2017-03-10 08:39:39 +0530
commitce7238aef6d5080d8f7ea79b96c9569bf191f0b8 (patch)
tree46c0521525bdcb2e08c3c5bdbac1a763b73fee5e /.travis.yml
parent69951e247ea02196ec6e65324f77898d9ea389b3 (diff)
parentf5fd0c9eae3d673209528db37e5848cb38a568e6 (diff)
downloadonline_test-ce7238aef6d5080d8f7ea79b96c9569bf191f0b8.tar.gz
online_test-ce7238aef6d5080d8f7ea79b96c9569bf191f0b8.tar.bz2
online_test-ce7238aef6d5080d8f7ea79b96c9569bf191f0b8.zip
Merge pull request #243 from ankitjavalkar/coverage
Add coverage config file and coverage command to travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index f1c4dab..4777f11 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,12 @@ install:
- pip install -r requirements/requirements-common.txt
- python setup.py develop
-# command to run tests
+# command to run tests and coverage
script:
- - python manage.py test -v 2 yaksh
- - python manage.py test -v 2 yaksh.live_server_tests.load_test
+ - coverage erase
+ - coverage run -p manage.py test -v 2 yaksh
+ - coverage run -p manage.py test -v 2 yaksh.live_server_tests.load_test
+
+after_success:
+ - coverage combine
+ - coverage report