From d89cbc0fd1160ccbada22420c0b1bb63a3f52451 Mon Sep 17 00:00:00 2001 From: Fabian Schuh Date: Mon, 12 Mar 2018 20:24:56 +0100 Subject: [PATCH] travis and tox updates --- .travis.yml | 19 +++++++++++++------ tox.ini | 11 +++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0fa55f7..dc081db3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,18 @@ language: python -python: "3.5" +sudo: false +python: + - 3.5 +matrix: + include: + - env: TOXENV=py35 + python: 3.5 + - env: TOXENV=py36 + python: 3.6 + #- env: TOXENV=py37 + # python: 3.7 install: - - pip install tox codecov + - pip install tox-travis codecov script: - - tox -env: - - TOXENV=py35 - - TOXENV=docs + - tox after_success: - codecov diff --git a/tox.ini b/tox.ini index 9a50a88f..552fe35b 100644 --- a/tox.ini +++ b/tox.ini @@ -3,10 +3,10 @@ envlist = py27,py35,py36,py37,lint,docs skip_missing_interpreters = true [testenv] -deps = -rrequirements-test.txt -commands = +deps=-rrequirements-test.txt +commands= coverage run -a setup.py test - coverage report --show-missing + coverage report --show-missing --ignore-errors coverage html -i [testenv:lint] @@ -20,8 +20,7 @@ basepython= python changedir= docs -deps= - -rdocs/requirements.txt - sphinx +deps=-rdocs/requirements.txt + sphinx commands= sphinx-build -b html ./ ./html