Skip to content

Commit a8f17bb

Browse files
authored
ENH: Use junit (mne-tools#6008)
1 parent 91f3b81 commit a8f17bb

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ jobs:
194194
if [[ $(cat gitlog.txt) == *"[circle front]"* ]] || [[ $(cat build.txt) == "html_dev" ]] || [[ $(cat build.txt) == "html_stable" ]]; then
195195
make test-doc;
196196
fi;
197+
mkdir -p doc/_build/test-results/test-doc;
198+
cp junit-results.xml doc/_build/test-results/test-doc/junit.xml;
197199
# Build docs
198200
- run:
199201
name: make html
@@ -205,6 +207,12 @@ jobs:
205207
command: |
206208
python -c "import mne; level = mne.get_config('MNE_LOGGING_LEVEL'); assert level.lower() == 'info', repr(level)"
207209
210+
# Save the JUnit file
211+
- store_test_results:
212+
path: doc/_build/test-results
213+
- store_artifacts:
214+
path: doc/_build/test-results
215+
destination: test-results
208216
# Save the outputs
209217
- store_artifacts:
210218
path: doc/_build/html/

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.junit-results.xml
21
junit-results.xml
32
*.pyc
43
*.pyo

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from datetime import date
1616
from distutils.version import LooseVersion
1717
import os
18+
import os.path as op
1819
import sys
1920
import warnings
2021

@@ -407,6 +408,7 @@ def reset_warnings(gallery_conf, fname):
407408
'show_memory': True,
408409
'line_numbers': False, # XXX currently (0.3.dev0) messes with style
409410
'within_subsection_order': FileNameSortKey,
411+
'junit': op.join('..', 'test-results', 'sphinx-gallery', 'junit.xml'),
410412
}
411413

412414
##############################################################################

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ release = egg_info -RDb ''
1515
doc-files = doc
1616

1717
[tool:pytest]
18-
addopts = --showlocals --durations=20 --doctest-modules -rs --cov-report= --doctest-ignore-import-errors --junit-xml=junit-results.xml --ignore=mne/gui/_coreg_gui.py --ignore=mne/gui/_fiducials_gui.py --ignore=mne/gui/_file_traits.py --ignore=mne/gui/_kit2fiff_gui.py --ignore=mne/gui/_marker_gui.py --ignore=mne/gui/_viewer.py
18+
addopts = --showlocals --durations=20 --doctest-modules -ra --cov-report= --doctest-ignore-import-errors --junit-xml=junit-results.xml --ignore=doc/sphinxext/cited_mne.py --ignore=mne/gui/_coreg_gui.py --ignore=mne/gui/_fiducials_gui.py --ignore=mne/gui/_file_traits.py --ignore=mne/gui/_kit2fiff_gui.py --ignore=mne/gui/_marker_gui.py --ignore=mne/gui/_viewer.py
1919
usefixtures = matplotlib_config
2020
# Set this pretty low to ensure we do not by default add really long tests,
2121
# or make changes that make things a lot slower

0 commit comments

Comments
 (0)