Skip to content

Commit

Permalink
Added initial support for Travis-CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
milmazz committed Mar 7, 2014
1 parent bff9103 commit 7a2c46b
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
python: 2.7
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=pypy
- TOX_ENV=pep8
- TOX_ENV=docs
install:
- pip install tox python-coveralls --use-mirrors --download-cache $HOME/.pip-cache
cache:
directories:
- $HOME/.pip-cache/
script:
- tox -e $TOX_ENV
after_success:
- coveralls
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Wil Alvarez (Design and Development)
* Eleazar Meza (Design)
* Andrea Stagi (Development)
* Milton Mazzarri
48 changes: 48 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[tox]
envlist = py26,py27,py33,pypy,pep8,docs

[testenv]
deps =
oauth>=1.0.1
simplejson>=3.3.1
requests>=2.0.0
pytest>=2.5.0
pytest-cov
commands = py.test --cov-report term-missing --cov libturpial tests

[testenv:pep8]
deps = flake8
commands = flake8 libturpial

[testenv:docs]
basepython = python2.7
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
sphinx-build -W -b linkcheck docs {envtmpdir}/html

[flake8]
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E231 missing whitespace after ':'
# E251 unexpected spaces around keyword / parameter equals
# E261 at least two spaces before inline comment
# E301 expected 1 blank line
# E302 expected 2 blank lines
# E303 too many blank lines
# E501 line too long
# E711 comparison to None should be 'if cond is not None:'
# E712 comparison to False should be 'if cond is False:' or 'if not cond:'
# F401 imported but unused
# F403 unable to detect undefined names
# F821 undefined name
# F841 local variable is assigned to but never used
# F999 syntax error in doctest
# W291 trailing whitespace
# W391 blank line at end of file
# W601 .has_key() is deprecated, use 'in'
show-source = True
ignore = E126,E128,E231,E251,E261,E301,E302,E303,E501,E711,E712,F401,F403,F821,F841,F999,W291,W391,W601
exclude = .venv,.git,.tox,dist,doc,build,*egg,*shortypython*

0 comments on commit 7a2c46b

Please sign in to comment.