test: pass PYTEST_ADDOPTS to pytest

This commit is contained in:
Takeshi KOMIYA 2018-02-04 01:57:10 +09:00
parent 499e3bc852
commit 3430610a0f
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ matrix:
- python: '2.7'
env:
- TOXENV=du13
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg
- PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
@ -23,7 +23,7 @@ matrix:
- python: '3.6'
env:
- TOXENV=py36
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg
- PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
- python: 'nightly'
env: TOXENV=py37
- python: '3.6'
@ -46,4 +46,4 @@ script:
- tox -- -v
after_success:
- codecov
- if [[ -e .coverage ]]; then codecov -e $TOXENV; fi

View File

@ -5,7 +5,7 @@ envlist = docs,flake8,mypy,coverage,py{27,34,35,36,py},du{11,12,13,14}
[testenv]
usedevelop = True
passenv =
https_proxy http_proxy no_proxy PERL PERL5LIB
https_proxy http_proxy no_proxy PERL PERL5LIB PYTEST_ADDOPTS
description =
py{27,34,35,36,py}: Run unit tests against {envname}.
du{11,12,13,14}: Run unit tests with the given version of docutils.