pantalaimon: Add travis configuration.

This commit is contained in:
Damir Jelić 2019-04-10 12:43:54 +02:00
parent 76e1855701
commit 60df21c575
2 changed files with 51 additions and 0 deletions

23
.travis.yml Normal file
View File

@ -0,0 +1,23 @@
language: python
dist: xenial
sudo: false
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
matrix:
include:
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.7
env: TOXENV=coverage
install: pip install tox-travis
script: tox
after_success:
- bash <(curl -s https://codecov.io/bash)

28
tox.ini Normal file
View File

@ -0,0 +1,28 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py36,py37,coverage
[testenv]
basepython =
py36: python3.6
py37: python3.7
py3: python3.7
deps = -rtest-requirements.txt
install_command = pip install {opts} {packages}
passenv = TOXENV CI TRAVIS TRAVIS_*
commands = pytest
usedevelop = True
[testenv:coverage]
basepython = python3.7
commands =
py.test --cov=nio --cov-report term-missing
coverage xml
coverage report --show-missing
codecov -e TOXENV
deps =
coverage
codecov>=1.4.0
setenv =
COVERAGE_FILE=.coverage