Skip to content

Commit

Permalink
Run dependency tests for all supported python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 11, 2020
1 parent 74191b1 commit 6e92bbb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ matrix:
- python: "3.6"
env: TOXENV=lint-py36
- python: "3.5"
env: TOXENV=py35
env: TOXENV=py35,py35-deps
- python: "3.6"
env: TOXENV=py36
env: TOXENV=py36,py36-deps
- python: "3.7"
env: TOXENV=py37
env: TOXENV=py37,py37-deps
- python: "3.8"
env: TOXENV=py38
env: TOXENV=py38,py38-deps

install:
- travis_retry pip install -U pip setuptools
Expand Down
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
environment:
WIN_COV: ' ' # some whitespaces to have a trueish value.
matrix:
- PROFILE: py37
PYTHON_VERSION: 3.7"
TOXENV: "py37"
- PROFILE: py37-conventions
PYTHON_VERSION: 3.7"
TOXENV: "lint-py37"
- PROFILE: py37
PYTHON_VERSION: 3.7"
TOXENV: "py37,py37-deps"
- PROFILE: py35
PYTHON_VERSION: 3.5"
TOXENV: "py35"
TOXENV: "py35,py35-deps"
- PROFILE: py36
PYTHON_VERSION: 3.6"
TOXENV: "py36"
TOXENV: "py36,py36-deps"

cache:
- '%LOCALAPPDATA%\pip\Cache'
Expand Down
22 changes: 21 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ envlist =
py35,
py35-deps,
py36,
py36-deps,
py37,
py37-deps,
py38,
py38-deps,
lint-py36
coverage-report

[testenv]
coverage_run = {env:WIN_COV:coverage run}
use_develop = True
commands =
{[testenv]coverage_run} -m zope.testrunner \
--test-path=src \
Expand All @@ -21,7 +25,7 @@ deps =
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:py35-deps]
[deps]
commands =
{[testenv]coverage_run} -m zope.testrunner \
--test-path={envsitepackagesdir} \
Expand All @@ -47,6 +51,22 @@ deps =
Products.ZCatalog
Record

[testenv:py35-deps]
commands = {[deps]commands}
deps = {[deps]deps}

[testenv:py36-deps]
commands = {[deps]commands}
deps = {[deps]deps}

[testenv:py37-deps]
commands = {[deps]commands}
deps = {[deps]deps}

[testenv:py38-deps]
commands = {[deps]commands}
deps = {[deps]deps}

[testenv:coverage-report]
basepython = python3.6
deps =
Expand Down

0 comments on commit 6e92bbb

Please sign in to comment.