Skip to content

Commit

Permalink
Constraint coverage<5 in examples until I figure out why combining is…
Browse files Browse the repository at this point in the history
… borken.
  • Loading branch information
ionelmc committed Jan 12, 2020
1 parent 13802bc commit d3daf76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ci/templates/.travis.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
- stage: examples
{%- for example in ['src', 'adhoc'] %}{{ '' }}
{%+ if not loop.first %}- {% else %} {% endif -%}
python: '3.6'
python: '3.8'
script: cd $TARGET; tox -v
env:
- TARGET=examples/{{ example }}-layout
Expand Down
11 changes: 6 additions & 5 deletions examples/adhoc-layout/tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = clean,py27,py36,report
envlist = clean,py27,py38,report

[tool:pytest]
addopts =
Expand All @@ -10,21 +10,22 @@ commands = pytest --cov --cov-append --cov-config={toxinidir}/.coveragerc {posar
deps =
pytest
pytest-cov
coverage<5
depends =
{py27,py36}: clean
report: py27,py36
{py27,py38}: clean
report: py27,py38

# note that this is necessary to prevent the tests importing the code from your badly laid project
changedir = tests

[testenv:report]
skip_install = true
deps = coverage
deps = coverage<5
commands =
coverage html
coverage report --fail-under=100

[testenv:clean]
skip_install = true
deps = coverage
deps = coverage<5
commands = coverage erase
11 changes: 6 additions & 5 deletions examples/src-layout/tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = clean,py27,py36,report
envlist = clean,py27,py38,report

[tool:pytest]
testpaths = tests
Expand All @@ -11,18 +11,19 @@ commands = pytest --cov --cov-append {posargs:-vv}
deps =
pytest
pytest-cov
coverage<5
depends =
{py27,py36}: clean
report: py27,py36
{py27,py38}: clean
report: py27,py38

[testenv:report]
skip_install = true
deps = coverage
deps = coverage<5
commands =
coverage html
coverage report --fail-under=100

[testenv:clean]
skip_install = true
deps = coverage
deps = coverage<5
commands = coverage erase

0 comments on commit d3daf76

Please sign in to comment.