mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-02-02 02:24:57 -05:00
pantalaimon: Add travis configuration.
This commit is contained in:
parent
76e1855701
commit
60df21c575
23
.travis.yml
Normal file
23
.travis.yml
Normal 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
28
tox.ini
Normal 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
|
Loading…
x
Reference in New Issue
Block a user