diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2d76472 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: python +python: + - '2.7' + - '3.5' +install: 'pip install -r requirements.txt' +script: ./run_tests.sh 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