tox + sped up parallel pytest

This commit is contained in:
diginc 2017-10-05 14:24:30 -05:00
parent c0c9114f37
commit 70988c2f10
4 changed files with 18 additions and 5 deletions

3
.gitignore vendored
View File

@ -2,6 +2,9 @@
*.pyc
.cache
__pycache__
.tox
.eggs
UNKNOWN.egg-info
# WIP/test stuff
doco.yml

View File

@ -4,11 +4,9 @@ services:
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt
script:
script:
# prepare qemu
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# run docker build & tests
- py.test -vv test/
# requirements, build docker, and tests
- tox

6
setup.py Normal file
View File

@ -0,0 +1,6 @@
from setuptools import setup
setup(
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)

6
tox.ini Normal file
View File

@ -0,0 +1,6 @@
[tox]
envlist = py27
[testenv]
deps = -rrequirements.txt
commands = pytest {posargs:-vv -n auto} ./test