| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,17 @@ | |||
| 1 | 1 | language: python | |
| 2 | 2 | python: | |
| 3 | - - "2.6" | ||
| 4 | 3 | - "2.7" | |
| 5 | - - "pypy" | ||
| 6 | - - "3.3" | ||
| 4 | + env: | ||
| 5 | + - TOX_ENV=py27 | ||
| 6 | + - TOX_ENV=pypy | ||
| 7 | + - TOX_ENV=py33 | ||
| 8 | + - TOX_ENV=py34 | ||
| 7 | 9 | ||
| 8 | 10 | install: | |
| 9 | - - "pip install --use-mirrors ." | ||
| 10 | - - "pip install --use-mirrors -r dev_requirements.txt" | ||
| 11 | + - pip install --use-mirrors tox coveralls | ||
| 11 | 12 | ||
| 12 | - script: py.test | ||
| 13 | + script: | ||
| 14 | + - tox -e $TOX_ENV | ||
| 15 | + | ||
| 16 | + after_success: | ||
| 17 | + - coveralls | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,25 +34,3 @@ Latest version (this is the normal way) | |||
| 34 | 34 | :: | |
| 35 | 35 | ||
| 36 | 36 | pip install webuntis | |
| 37 | - | ||
| 38 | - | ||
| 39 | - Development | ||
| 40 | - =========== | ||
| 41 | - | ||
| 42 | - Installing Development Dependencies | ||
| 43 | - +++++++++++++++++++++++++++++++++++ | ||
| 44 | - | ||
| 45 | - A `virtualenv <http://www.virtualenv.org/>`_ is recommended:: | ||
| 46 | - | ||
| 47 | - $ pip install -r dev_requirements.txt | ||
| 48 | - | ||
| 49 | - | ||
| 50 | - Unittests | ||
| 51 | - +++++++++ | ||
| 52 | - | ||
| 53 | - :: | ||
| 54 | - | ||
| 55 | - $ py.test | ||
| 56 | - | ||
| 57 | - For the single testsuites and their descriptions, look at the docstrings of the | ||
| 58 | - modules in ``webuntis.tests``. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,8 @@ | |||
| 1 | 1 | [tox] | |
| 2 | 2 | envlist= | |
| 3 | - py26,py27,py33,pypy | ||
| 3 | + py26,py27,py33,py34,pypy | ||
| 4 | 4 | [testenv] | |
| 5 | - commands= | ||
| 6 | - pip install -r dev_requirements.txt | ||
| 7 | - py.test [] | ||
| 5 | + deps = pytest | ||
| 6 | + coverage | ||
| 7 | + commands = coverage run --source=webuntis/,tests/ --module pytest | ||
| 8 | + coverage report --show-missing | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments