Skip to content

Commit

Permalink
Configure nosetests through setup.cfg
Browse files Browse the repository at this point in the history
Run Travis CI and tox tests through setuptools
Use NOSE_WITH_COVERAGE environment variable for Travis CI
  • Loading branch information
Harmon758 committed Oct 16, 2019
1 parent 5413d21 commit 7d17d6c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ env:
global:
- TWITTER_USERNAME="TweepyDev"
- AWS_BUCKET="tweepy"
- NOSE_WITH_COVERAGE=1
- USE_REPLAY=1
- secure: TPQSFGqdl6khXqQqTZ6euROoAmFRnONAlPXD6npvTIIN+fNfnz8lvZtOEWHo2jRPLoU3FyVUhYvTynj6B2hJinulP+RKOMbQ65HCZVHrsitwl1n1QZB5HegQDOYc5q6VTTYn/r8r5tGy35U0O80y1zycTLqSJiXlkdqsSq564pI=

install:
- pip install .[dev,test]

script:
- nosetests -v --with-coverage -c tests/travis-tests.cfg
- python setup.py nosetests

after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then coveralls; fi
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[bdist_wheel]
universal = 1

[nosetests]
verbosity = 2
tests = tests.test_api,tests.test_cursors,tests.test_resultset,tests.test_utils
2 changes: 0 additions & 2 deletions tests/travis-tests.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
envlist = py27, py35, py36, py37

[testenv]
commands = nosetests -v tests.test_api tests.test_cursors tests.test_resultset tests.test_utils
commands = python setup.py nosetests
extras = test
setenv =
USE_REPLAY = 1

0 comments on commit 7d17d6c

Please sign in to comment.