Skip to content

Commit d06b58c

Browse files
committed
enhance circle CI error reporting
1 parent 74f8b78 commit d06b58c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.noserc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[nosetests]
2+
verbosity=3
3+
4+
with-coverage=1
5+
cover-branches=1
6+
cover-xml=1
7+
cover-xml-file=./coverage.xml
8+
cover-min-percentage=66
9+
10+
with-profile=1
11+
profile-restrict=.05
12+
profile-stats-file=./profile-stats.prof
13+
14+
with-xunit=1

circle.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
# Set up python environment
2222
- pip install --upgrade pip
2323
- pip install -e .
24-
- pip install matplotlib sphinx ipython boto
24+
- pip install matplotlib sphinx ipython boto NoseXUnit
2525
- gem install fakes3
2626
- if [[ ! -d ~/examples/data ]]; then wget "http://tcpdiag.dl.sourceforge.net/project/nipy/nipype/nipype-0.2/nipype-tutorial.tar.bz2"; tar jxvf nipype-tutorial.tar.bz2; mkdir ~/examples; mv nipype-tutorial/* ~/examples/; fi
2727
- if [[ ! -d ~/examples/fsl_course_data ]]; then wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt1.tar.gz" ; wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt2.tar.gz"; wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/tbss.tar.gz"; mkdir ~/examples/fsl_course_data; tar zxvf fdt1.tar.gz -C ~/examples/fsl_course_data; tar zxvf fdt2.tar.gz -C ~/examples/fsl_course_data; tar zxvf tbss.tar.gz -C ~/examples/fsl_course_data; fi
@@ -32,7 +32,8 @@ machine:
3232
FSLOUTPUTTYPE: NIFTI_GZ
3333
test:
3434
override:
35-
- source $HOME/.profile; nosetests --with-doctest --logging-level=DEBUG --verbosity=3:
35+
- mkdir -p ${CIRCLE_TEST_REPORTS}/nose
36+
- source $HOME/.profile; nosetests --with-doctest --xunit-file="${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml" -c ./.noserc --logging-level=DEBUG --verbosity=3:
3637
environment:
3738
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
3839
FORCE_SPMMCR: 1
@@ -66,3 +67,6 @@ general:
6667
artifacts:
6768
- "doc/_build/html"
6869
- "~/log.txt"
70+
- "nosetests.xml"
71+
- "coverage.xml"
72+
- "profile-stats.prof"

0 commit comments

Comments
 (0)