Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
b6ac5e40
Commit
b6ac5e40
authored
6 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Add coverage to py27-old
parent
9ef1107b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tox.ini
+6
-3
6 additions, 3 deletions
tox.ini
with
6 additions
and
3 deletions
tox.ini
+
6
−
3
View file @
b6ac5e40
...
@@ -82,15 +82,18 @@ deps =
...
@@ -82,15 +82,18 @@ 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'
# Install Synapse itself. This won't update any libraries.
pip
install
-e
.
# Add this so that coverage will run on subprocesses
{envbindir}/trial
{env:TRIAL_FLAGS:}
{posargs:tests}
{env:TOXSUFFIX:}
/bin/sh
-c
'echo
"import
coverage
; coverage.process_startup()" > {envsitepackagesdir}/../sitecustomize.py'
{envbindir}/coverage
run
"{envbindir}/trial"
{env:TRIAL_FLAGS:}
{posargs:tests}
{env:TOXSUFFIX:}
[testenv:packaging]
[testenv:packaging]
skip_install
=
True
skip_install
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment