Merge pull request #4542 from tk0miya/4503_codecov.io

test: pass PYTEST_ADDOPTS to pytest
This commit is contained in:
Takeshi KOMIYA 2018-02-04 23:19:34 +09:00 committed by GitHub
commit 9745f3816f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ matrix:
- python: '2.7' - python: '2.7'
env: env:
- TOXENV=du13 - TOXENV=du13
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
- python: '3.4' - python: '3.4'
env: TOXENV=py34 env: TOXENV=py34
- python: '3.5' - python: '3.5'
@ -23,7 +23,7 @@ matrix:
- python: '3.6' - python: '3.6'
env: env:
- TOXENV=py36 - TOXENV=py36
- PYTEST_ADDOPTS = --cov sphinx --cov-append --cov-config setup.cfg - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
- python: 'nightly' - python: 'nightly'
env: TOXENV=py37 env: TOXENV=py37
- python: '3.6' - python: '3.6'
@ -46,4 +46,4 @@ script:
- tox -- -v - tox -- -v
after_success: 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] [testenv]
usedevelop = True usedevelop = True
passenv = passenv =
https_proxy http_proxy no_proxy PERL PERL5LIB https_proxy http_proxy no_proxy PERL PERL5LIB PYTEST_ADDOPTS
description = description =
py{27,34,35,36,py}: Run unit tests against {envname}. 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. du{11,12,13,14}: Run unit tests with the given version of docutils.