From d3731bb4708b630fbc89e98f2afde031eb8cd476 Mon Sep 17 00:00:00 2001
From: John Dewey <john@dewey.ws>
Date: Fri, 6 Apr 2018 11:10:13 -0700
Subject: [PATCH] Added travis ci testing

Fixes: #7
---
 .travis.yml | 13 +++++++++++++
 tox.ini     | 12 +++++++++---
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..39ca5bf
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+---
+sudo: required
+
+language: python
+python:
+  - "2.7"
+  - "3.6"
+
+install:
+  - pip install tox-travis
+
+script:
+  - tox
diff --git a/tox.ini b/tox.ini
index fd3144d..346173a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,9 @@ minversion = 1.8
 envlist =
     py{27,36}-unit
     py{27,36}-lint
+    format-check
     doc
+skipsdist = true
 
 [testenv]
 passenv = *
@@ -11,16 +13,20 @@ 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