From 01886643172f21c6ec26614e041e89be303d3b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 25 Jan 2019 22:36:25 +0100 Subject: [PATCH] tests: Add travis config. --- .travis.yml | 21 +++++++++++++++++++++ README.md | 3 +-- requirements.txt | 9 +++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .travis.yml create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..90ab2ad --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: python +dist: xenial +sudo: false +python: + - "2.7" + - "3.6" + - "3.7" + +before_install: + - wget https://matrix.org/git/olm/snapshot/olm-2.3.0.tar.bz2 + - tar -xvf olm-2.3.0.tar.bz2 + - pushd olm-2.3.0 && make && sudo make PREFIX="/usr" install && popd + - rm -r olm-2.3.0 + +install: + - pip install -r requirements.txt + - pip install pytest + - pip install hypothesis + +script: + python -m pytest diff --git a/README.md b/README.md index 5833c4d..7d12bb8 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,8 @@ The following Python modules must also be available on your system: - pyOpenSSL - typing - webcolors -- http-parser - future (Python2 users only, see below) -- atomicwrite +- atomicwrites - [matrix-nio](https://github.com/poljar/matrix-nio) - attrs - logbook diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..abd1d7a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +pyOpenSSL +typing ; python_version < "3.5" +webcolors +future +atomicwrites +attrs +logbook +pygments +matrix-nio @ git+https://github.com/poljar/matrix-nio.git@master#egg=matrix-nio-0