Barry Warsaw pushed to branch master at mailman / Mailman
Commits: 85461046 by Aurélien Bompard at 2016-04-30T19:00:22+02:00 Make the tox.ini file more flexible This commit improves two aspects of the tox.ini file: * Take arguments into account to only run a subset of the tests, eg: `tox -e py34 mailman.model.tests.test_subscriptions` * Make it possible to run pyflakes with the local Python 3 interpreter, whichever its version. - - - - - a5849875 by Aurélien Bompard at 2016-04-30T19:00:22+02:00 Fix the gitlab script - - - - - 2 changed files: - .gitlab-ci.yml - tox.ini Changes: ===================================== .gitlab-ci.yml ===================================== --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,6 @@ pgsql: services: - postgres:latest script: - - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/postgres.cfg tox -e {py34,py35}-pg + - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/postgres.cfg tox -e py34-pg,py35-pg tags: - postgres ===================================== tox.ini ===================================== --- a/tox.ini +++ b/tox.ini @@ -5,8 +5,8 @@ skip_missing_interpreters = True [testenv] commands = - python -m nose2 -v - {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v + python -m nose2 -v {posargs} + {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v {posargs} {coverage,diffcov}: python -m coverage combine {[coverage]rc} coverage: python -m coverage html {[coverage]rc} coverage: python -m coverage report -m {[coverage]rc} @@ -27,7 +27,7 @@ setenv = coverage: COVERAGE_FILE={toxinidir}/.coverage [testenv:qa] -basepython = python3.5 +basepython = python3 commands = python -m flake8 src deps = View it on GitLab: https://gitlab.com/mailman/mailman/compare/1b46e6b6262109d4befbb5a1c534ffde25d702fb...a584987573e9b2b73e5cfd6012b4b1af6d4e4b1c
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org