Skip to content

Commit

Permalink
Move test requirements to separate file
Browse files Browse the repository at this point in the history
Enable coveralls.io for test coverage
  • Loading branch information
lepinkainen committed Dec 29, 2015
1 parent 67db3a5 commit 9a67516
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ env:

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
before_install:
- pip install codecov
- pip install coverage coveralls
install:
- pip install --upgrade pip setuptools
- pip install -r requirements.txt
- pip install pytest pytest-pep8 pytest-flakes nose # we still need nose for the _eq functions for now
# command to run tests, e.g. python setup.py test
- pip install -r requirements_test.txt

before_script: export PYTHONPATH=$PYTHONPATH:$(pwd)
script: py.test
# run tests with test coverage
script: coverage run --source pyfibot -m py.test

# upload coverage results to coveralls.io
after_success:
- codecov
- coveralls
notifications:
irc:
channels:
Expand Down
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ httplib2 >= 0.8.0
feedparser >= 5.1.3
service_identity
python-dateutil >= 2.2
# test libraries
vcrpy
pytest
nose
5 changes: 5 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vcrpy
pytest
pytest-pep8
pytest-flakes
nose

0 comments on commit 9a67516

Please sign in to comment.