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