Skip to content

Commit c4fc236

Browse files
committed
Merge pull request #1342 from chrisfilo/enh/circle_testing
improved outputs of circeci
2 parents 3afcdd3 + 6765048 commit c4fc236

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.noserc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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=50
9+
10+
11+
with-xunit=1

circle.yml

Lines changed: 5 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 coverage
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 && 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,5 @@ general:
6667
artifacts:
6768
- "doc/_build/html"
6869
- "~/log.txt"
70+
- "nosetests.xml"
71+
- "coverage.xml"

0 commit comments

Comments
 (0)