tests: Add travis config.

This commit is contained in:
Damir Jelić 2019-01-25 22:36:25 +01:00
parent 549a13f204
commit 0188664317
3 changed files with 31 additions and 2 deletions

21
.travis.yml Normal file
View file

@ -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

View file

@ -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

9
requirements.txt Normal file
View file

@ -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