From 55e4aae6a2897c38e3c50b1e0b6cf5b98d7bfa11 Mon Sep 17 00:00:00 2001 From: NotSqrt Date: Mon, 23 Nov 2015 14:48:51 +0100 Subject: [PATCH] Add tox and travis --- .gitignore | 1 + .travis.yml | 18 ++++++++++++++++++ tox.ini | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .travis.yml create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 5c277c5..6b04112 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.swp *.egg-info *.pyc +.tox .coverage htmlcov diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..28d0ca0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: python + +sudo: false + +python: + - 2.7 + - 3.3 + - 3.4 + - 3.5 + +install: + - pip install coveralls -e . + +script: + - coverage run --source=mattermost_gitlab,tests tests/test.py + +after_success: + - coveralls --verbose diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a205bec --- /dev/null +++ b/tox.ini @@ -0,0 +1,18 @@ + +# Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +minversion=1.8.0 +envlist = + py27, + py33, + py34, + py35, + +[testenv] +commands = coverage run --source=mattermost_gitlab,tests tests/test.py +deps = + coverage