-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure tox to be able to run tests locally.
- Loading branch information
Rémy HUBSCHER
committed
Feb 26, 2016
1 parent
3110780
commit cf93090
Showing
5 changed files
with
52 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
.coverage | ||
.venv/ | ||
__pycache__/ | ||
.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 |
---|---|---|
@@ -1,21 +1,18 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
|
||
python: 2.7 | ||
env: | ||
- TOX_ENV=py27-django16 | ||
- TOX_ENV=py27-django17 | ||
- TOX_ENV=py27-django18 | ||
- TOX_ENV=py27-django19 | ||
- TOX_ENV=py34-django17 | ||
- TOX_ENV=py34-django18 | ||
- TOX_ENV=py34-django19 | ||
- TOX_ENV=flake8 | ||
install: | ||
- pip install -e . | ||
- pip install $DJANGO | ||
- pip install coverage flake8 mock pyenchant | ||
- pip install tox | ||
script: | ||
- export DJANGO_SETTINGS_MODULE=testtinymce.settings | ||
- export PYTHONPATH=$PWD:$PWD/testtinymce:$PYTHONPATH | ||
- flake8 tinymce --ignore=E501,E402 | ||
- coverage run --source=tinymce setup.py test | ||
- tox -e $TOX_ENV | ||
after_success: | ||
- pip install coveralls | ||
- coveralls | ||
env: | ||
- DJANGO="Django==1.6.11" | ||
- DJANGO="Django==1.7.8" | ||
- DJANGO="Django==1.8.8" | ||
- DJANGO="Django==1.9.2" |
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
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,26 @@ | ||
[tox] | ||
envlist = | ||
py27-django{16,17,18,19}, | ||
py34-django{17,18,19}, | ||
flake8 | ||
|
||
[testenv] | ||
deps = | ||
django16: Django>=1.6,<1.7 | ||
django17: Django>=1.7,<1.8 | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
coverage | ||
mock | ||
pyenchant | ||
commands = | ||
python setup.py develop | ||
coverage run --branch --source=tinymce setup.py test | ||
coverage report -m --omit=tinymce/test* | ||
pip freeze | ||
|
||
[testenv:flake8] | ||
deps = | ||
flake8 | ||
commands = | ||
flake8 tinymce --ignore=E501,E402 |