Skip to content

Commit

Permalink
Make Travis run functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coagulant committed Oct 13, 2013
1 parent 88cd117 commit ed4bea1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: python
python:
3.3
env:
global:
- secure: iFrFcisr0pHbABFIoqC9vLCj6DRYbhIeBMzolTHmLTSqnslWMoqeKkWxt3Ay2QmF0NND0yvgKSH4X67WVgLZoKsDE3qv/HWI3Ne/O0LUkWOdRPaaeRI/j0APUej1dvXFMpZZX4eM42TyGarJJWG7yNTIoieuwIvDaQ/GmCY5304=
- secure: cZc3sVAqTvij+rWQn9TKtRUN3YPTm/DF4nRa+/NWW9+YE1vAcNgCw6yfFizNSTbn79rRk7ofU7WRbVp2ry3B34Jbi+f3Tx4ZsP6HtYJvnNcmtsRLNDAPtG1+FPhjsBH+8NekHUy+I7uzNC5MJG/rK6pVIMzRfHem9hgDb60hdN8=
install:
pip install -r gopython3/requirements-dev.txt
script:
Expand Down
5 changes: 3 additions & 2 deletions gopython3/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def functional(arg=''):


@task
def cover(package=''):
def cover(package='', only_unit=False):
""" Django-nose does not report properly"""
run('coverage run --source=%s manage.py test --with-doctest -a"!functional"' % package, pty=True)
arg = '-a"!functional"' if only_unit else ''
run('coverage run --source=%s manage.py test --with-doctest %s' % (package, arg), pty=True)
run('coverage report -m', pty=True)

0 comments on commit ed4bea1

Please sign in to comment.