Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
FSL
fslpy
Commits
d46de36f
Commit
d46de36f
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Tweaks - I think I've figured out why python 3.x tests were hanging -
something wrong in coverage!
parent
e1e84287
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.coveragerc
+9
-0
9 additions, 0 deletions
.coveragerc
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
pytest.ini
+1
-1
1 addition, 1 deletion
pytest.ini
setup.py
+2
-0
2 additions, 0 deletions
setup.py
with
19 additions
and
3 deletions
.coveragerc
0 → 100644
+
9
−
0
View file @
d46de36f
[run]
source =
fsl
# async.py is not currently covered because
# it otherwise causes async unit tests to
# hang when running in docker/python 3.x/xvfb-run!
omit =
fsl/utils/async.py
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
7
−
2
View file @
d46de36f
...
...
@@ -225,7 +225,6 @@ variables:
-
apt-get update -y
-
apt-get install -y xvfb libgtk-3-0
-
apt-get install -y libnotify4 freeglut3 libsdl1.2debian
-
apt-get install -y libwebkitgtk-3.0-0 libgstreamer-plugins-base1.0
# Linux builds for wxPython are currently not
# on pypi, but are available at thisd url.
...
...
@@ -234,8 +233,14 @@ variables:
# All other deps can be installed as
# normal. scipy is required by nibabel,
# but not listed in its requirements.
# We install test dependencies through
# pip, because if we let setuptools do
# it, it will build/install everything
# from source, rather than using wheels.
-
pip install -r requirements.txt
-
pip install scipy
-
pip install sphinx sphinx-rtd-theme
-
pip install pytest pytest-cov pytest-html pytest-runner mock coverage
# We need the FSL atlases for the atlas
# tests, and need $FSLDIR to be defined
...
...
@@ -245,7 +250,7 @@ variables:
# Finally, run the damned tests.
-
su -s /bin/bash -c "xvfb-run python setup.py test" nobody
-
coverage report
-m
-
python -m
coverage report
test:2.7
:
...
...
This diff is collapsed.
Click to expand it.
pytest.ini
+
1
−
1
View file @
d46de36f
[pytest]
testpaths
=
tests
addopts
=
-s -v --niters=50
--cov=fsl
--cov-report=html --html=report.html
addopts
=
-s -v --niters=50 --cov-report=html --html=report.html
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
0
View file @
d46de36f
...
...
@@ -98,7 +98,9 @@ setup(
'
Intended Audience :: Developers
'
,
'
License :: OSI Approved :: Apache Software License
'
,
'
Programming Language :: Python :: 2.7
'
,
'
Programming Language :: Python :: 3.4
'
,
'
Programming Language :: Python :: 3.5
'
,
'
Programming Language :: Python :: 3.6
'
,
'
Topic :: Software Development :: Libraries :: Python Modules
'
],
packages
=
packages
,
...
...
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