-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows for more consistent testing (CI and local) through the use of tox controlled virtualenv's to execute your tests. Also, switched the Travis CI config to use the project's tox setup. New way of executing your tests: # If needed pip install tox # Execute tox tox
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
python: 2.7 | ||
env: | ||
- TOX_ENV=py27 | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get install gnupg | ||
- sudo apt-get install -y gnupg | ||
|
||
install: | ||
- pip install -r requirements.txt --use-mirrors | ||
- pip install coverage coveralls nose --use-mirrors | ||
- pip install tox coveralls | ||
|
||
script: | ||
- "python setup.py install" | ||
- "nosetests mailpile.tests --with-coverage --cover-package=mailpile" | ||
after_success: | ||
- "coveralls" | ||
- tox -e $TOX_ENV | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ selenium>=2.40.0 | |
mock>=1.0.1 | ||
coverage | ||
nose | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tox] | ||
envlist = py27 | ||
|
||
[testenv] | ||
VIRTUAL_ENV={envdir} | ||
deps = -r{toxinidir}/requirements.txt | ||
-r{toxinidir}/test-requirements.txt | ||
commands = nosetests {toxinidir}/mailpile/tests --with-coverage --cover-package=mailpile |