[TEST] fix appveyor and travis

This commit is contained in:
Benedek Racz 2019-09-04 11:51:09 +02:00
parent d89f9a063c
commit 1b054f80f7
3 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,8 @@ matrix:
python: "3.7"
before_install:
- choco install python3
- export PATH="/c/Python37;/c/Python37/Scripts;$PATH"
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- python -m pip install virtualenv
- ls -la /c/Python37/Scripts
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate

View File

@ -6,4 +6,4 @@ install:
- pip install .[test]
test_script:
- python -m unittest
- tox

11
tox.ini Normal file
View File

@ -0,0 +1,11 @@
# tox.ini
[tox]
envlist = py{37}
[testenv]
description = Unit tests
commands =
pip install .[test]
coverage run -m unittest
coverage report --omit tests/*