Skip to content

Commit

Permalink
Added travis ci testing
Browse files Browse the repository at this point in the history
Fixes: #7
  • Loading branch information
retr0h committed Apr 6, 2018
1 parent 0cdb159 commit d3731bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
sudo: required

language: python
python:
- "2.7"
- "3.6"

install:
- pip install tox-travis

script:
- tox
12 changes: 9 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ minversion = 1.8
envlist =
py{27,36}-unit
py{27,36}-lint
format-check
doc
skipsdist = true

[testenv]
passenv = *
deps =
-rrequirements.txt
-rtest-requirements.txt
commands =
unit: py.test -vv -x --cov={toxinidir}/giturlparse/ {posargs}
unit: py.test -vv
lint: flake8

[testenv:format]
commands =
yapf -i -r giturlparse/ test/
yapf -i -r giturlparse// test/

[testenv:format-check]
commands =
yapf -d -r giturlparse/ test/

[testenv:doc]
passenv = *
deps=
-rdoc-requirements.txt
commands=
python setup.py build_sphinx
python setup.py build_sphinx --builder=html

0 comments on commit d3731bb

Please sign in to comment.