tests: Add travis config.
This commit is contained in:
parent
549a13f204
commit
0188664317
3 changed files with 31 additions and 2 deletions
21
.travis.yml
Normal file
21
.travis.yml
Normal 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
|
|
@ -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
9
requirements.txt
Normal 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
|
Loading…
Reference in a new issue