mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-20 06:54:17 -05:00
Merge pull request #4879 from matrix-org/erikj/test_old_deps
Add py27-old test case to buildkite
This commit is contained in:
commit
4aa0b707d2
@ -90,6 +90,17 @@ steps:
|
|||||||
image: "python:3.7"
|
image: "python:3.7"
|
||||||
propagate-environment: true
|
propagate-environment: true
|
||||||
|
|
||||||
|
- command:
|
||||||
|
- "python -m pip install tox"
|
||||||
|
- "tox -e py27-old,codecov"
|
||||||
|
label: ":python: 2.7 / SQLite / Old Deps"
|
||||||
|
env:
|
||||||
|
TRIAL_FLAGS: "-j 2"
|
||||||
|
plugins:
|
||||||
|
- docker#v3.0.1:
|
||||||
|
image: "python:2.7"
|
||||||
|
propagate-environment: true
|
||||||
|
|
||||||
- label: ":python: 2.7 / :postgres: 9.4"
|
- label: ":python: 2.7 / :postgres: 9.4"
|
||||||
env:
|
env:
|
||||||
TRIAL_FLAGS: "-j 4"
|
TRIAL_FLAGS: "-j 4"
|
||||||
|
1
changelog.d/4879.misc
Normal file
1
changelog.d/4879.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Reinstate test case that runs unit tests against oldest supported dependencies.
|
10
tox.ini
10
tox.ini
@ -82,15 +82,23 @@ deps =
|
|||||||
|
|
||||||
mock
|
mock
|
||||||
lxml
|
lxml
|
||||||
|
coverage
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
/usr/bin/find "{toxinidir}" -name '*.pyc' -delete
|
/usr/bin/find "{toxinidir}" -name '*.pyc' -delete
|
||||||
# Make all greater-thans equals so we test the oldest version of our direct
|
# Make all greater-thans equals so we test the oldest version of our direct
|
||||||
# dependencies, but make the pyopenssl 17.0, which can work against an
|
# dependencies, but make the pyopenssl 17.0, which can work against an
|
||||||
# OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis).
|
# OpenSSL 1.1 compiled cryptography (as older ones don't compile on Travis).
|
||||||
/bin/sh -c 'python -m synapse.python_dependencies | sed -e "s/>=/==/g" -e "s/psycopg2==2.6//" -e "s/pyopenssl==16.0.0/pyopenssl==17.0.0/" | xargs pip install'
|
/bin/sh -c 'python -m synapse.python_dependencies | sed -e "s/>=/==/g" -e "s/psycopg2==2.6//" -e "s/pyopenssl==16.0.0/pyopenssl==17.0.0/" | xargs pip install'
|
||||||
|
|
||||||
|
# Add this so that coverage will run on subprocesses
|
||||||
|
/bin/sh -c 'echo "import coverage; coverage.process_startup()" > {envsitepackagesdir}/../sitecustomize.py'
|
||||||
|
|
||||||
# Install Synapse itself. This won't update any libraries.
|
# Install Synapse itself. This won't update any libraries.
|
||||||
pip install -e .
|
pip install -e .
|
||||||
{envbindir}/trial {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}
|
|
||||||
|
{envbindir}/coverage run "{envbindir}/trial" {env:TRIAL_FLAGS:} {posargs:tests} {env:TOXSUFFIX:}
|
||||||
|
|
||||||
|
|
||||||
[testenv:packaging]
|
[testenv:packaging]
|
||||||
skip_install=True
|
skip_install=True
|
||||||
|
Loading…
Reference in New Issue
Block a user