diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1ef2dea --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python +python: + - '2.7' + - '3.5' +env: + - TOX_ENV=py2 + - TOX_ENV=py3 +install: 'pip install tox' +script: 'tox -e $TOX_ENV' diff --git a/README.md b/README.md index 4618f52..c6df1e1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/python-otr/pure-python-otr.svg?branch=master)](https://travis-ci.org/python-otr/pure-python-otr) + Python OTR ========== This is a pure Python OTR implementation; it does not bind to libotr. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..03917ad --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +PyCrypto >= 2.1 diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000..49e3850 --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,7 @@ +#!/bin/sh -eu + +# the directory that this script is in +SRC_ROOT=$(cd -P $(dirname "$0") && pwd) +export PYTHONPATH="$SRC_ROOT/src" + +python tests/testBasic.py diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..564b1e8 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ + +[tox] +envlist = py3,py2 + +[testenv] +commands=./run_tests.sh +deps= -r{toxinidir}/requirements.txt + +[testenv:py3] +basepython = python3 + +[testenv:py2] +basepython = python2