Run tests against Mailman Core from git repo.

This will allow running tests against Mailman Core's specific commit hash when
the environment variable CORE_COMMIT_SHA environment variable is specified. This
can also be used locally to test against a specific commit in Core's master
branch.
parent 4fbb870e
......@@ -22,3 +22,10 @@ lint:
docs:
script:
- tox -e docs
upstream:
script:
- tox -e dependency
only:
variables:
- $CORE_COMMIT_SHA
......@@ -6,9 +6,15 @@ usedevelop = True
commands = pytest --vcr-record=all {posargs}
extras = testing
[testenv:dependency]
userdevelop = True
extras = testing
deps = git+https://gitlab.com/mailman/[email protected]{env:CORE_COMMIT_SHA}
[testenv:record]
basepython = python3
commands = pytest --vcr-record=once
commands = pytest --vcr-record=once {posargs}
[testenv:lint]
extras = lint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment