Skip to content

Commit 7d8125d

Browse files
committed
submit reports from withing docker containers
1 parent 01d40ee commit 7d8125d

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

circle.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,38 @@ dependencies:
2121
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
2222
- docker build -f docker/nipype_test/Dockerfile_py35 -t nipype/nipype_test:py35 . :
2323
timeout: 1600
24-
- docker build -f docker/nipype_test/Dockerfile_py27 -t nipype/nipype_test:py27 . :
25-
timeout: 1600
24+
# - docker build -f docker/nipype_test/Dockerfile_py27 -t nipype/nipype_test:py27 . :
25+
# timeout: 1600
2626
- mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
2727
timeout: 1600
2828

2929
test:
3030
override:
31-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /root/src/nipype/doc nipype/nipype_test:py35 /usr/bin/run_builddocs.sh
31+
- docker run $ci_env -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /root/src/nipype/doc nipype/nipype_test:py35 /usr/bin/run_builddocs.sh
3232
- docker run -v /etc/localtime:/etc/localtime:ro -e FSL_COURSE_DATA="/root/examples/nipype-fsl_course_data" -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /root/src/nipype nipype/nipype_test:py35 /usr/bin/run_nosetests.sh py35 :
3333
timeout: 2600
34-
- docker run -v /etc/localtime:/etc/localtime:ro -e FSL_COURSE_DATA="/root/examples/nipype-fsl_course_data" -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /root/src/nipype nipype/nipype_test:py27 /usr/bin/run_nosetests.sh py27 :
35-
timeout: 2600
36-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh test_spm Linear /root/examples/ workflow3d :
37-
timeout: 1600
38-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh test_spm Linear /root/examples/ workflow4d :
39-
timeout: 1600
40-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_fsl_feeds Linear /root/examples/ l1pipeline
41-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_dartel Linear /root/examples/ level1 :
42-
timeout: 1600
43-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_dartel Linear /root/examples/ l2pipeline :
44-
timeout: 1600
45-
- docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_fsl_reuse Linear /root/examples/ level1_workflow
46-
- docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py27 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ level1
47-
- docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ level1
48-
- docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ l2pipeline
34+
environment:
35+
- ci_env: `bash <(curl -s https://codecov.io/env)`
36+
# - docker run -v /etc/localtime:/etc/localtime:ro -e FSL_COURSE_DATA="/root/examples/nipype-fsl_course_data" -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /root/src/nipype nipype/nipype_test:py27 /usr/bin/run_nosetests.sh py27 :
37+
# timeout: 2600
38+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh test_spm Linear /root/examples/ workflow3d :
39+
# timeout: 1600
40+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh test_spm Linear /root/examples/ workflow4d :
41+
# timeout: 1600
42+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_fsl_feeds Linear /root/examples/ l1pipeline
43+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_dartel Linear /root/examples/ level1 :
44+
# timeout: 1600
45+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_dartel Linear /root/examples/ l2pipeline :
46+
# timeout: 1600
47+
# - docker run -v /etc/localtime:/etc/localtime:ro -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_fsl_reuse Linear /root/examples/ level1_workflow
48+
# - docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py27 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ level1
49+
# - docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ level1
50+
# - docker run -v /etc/localtime:/etc/localtime:ro -e NIPYPE_NUMBER_OF_CPUS=4 -v ~/examples:/root/examples:ro -v ~/scratch:/scratch -w /scratch nipype/nipype_test:py35 /usr/bin/run_examples.sh fmri_spm_nested MultiProc /root/examples/ l2pipeline
4951

5052
post:
5153
- bash docker/circleci/teardown.sh
52-
- bash <(curl -s https://codecov.io/bash) -f "/home/ubuntu/scratch/coverage*.xml" -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests
53-
- bash <(curl -s https://codecov.io/bash) -f "/home/ubuntu/scratch/smoketest*.xml" -t ac172a50-8e66-42e5-8822-5373fcf54686 -F smoketests
54+
# - bash <(curl -s https://codecov.io/bash) -f "/home/ubuntu/scratch/coverage*.xml" -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests
55+
# - bash <(curl -s https://codecov.io/bash) -f "/home/ubuntu/scratch/smoketest*.xml" -t ac172a50-8e66-42e5-8822-5373fcf54686 -F smoketests
5456

5557
general:
5658
artifacts:

docker/circleci/run_nosetests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ fi
2424
cd /root/src/nipype/
2525
make clean
2626
nosetests -s nipype -c /root/src/nipype/.noserc --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}.xml"
27+
bash <(curl -s https://codecov.io/bash) -f /scratch/coverage_py${PYTHON_VERSION}.xml -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests
2728

2829
# Workaround: run here the profiler tests in python 3
2930
if [[ "${PYTHON_VERSION}" -ge "30" ]]; then
3031
echo '[execution]' >> /root/.nipype/nipype.cfg
3132
echo 'profile_runtime = true' >> /root/.nipype/nipype.cfg
3233
nosetests nipype/interfaces/tests/test_runtime_profiler.py --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}_profiler.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}_profiler.xml"
34+
bash <(curl -s https://codecov.io/bash) -f /scratch/coverage_py${PYTHON_VERSION}_profiler.xml -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests
3335
nosetests nipype/pipeline/plugins/tests/test_multiproc*.py --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}_multiproc.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}_multiproc.xml"
36+
bash <(curl -s https://codecov.io/bash) -f /scratch/coverage_py${PYTHON_VERSION}_multiproc.xml -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests
3437
fi
3538

3639
# Copy crashfiles to scratch

0 commit comments

Comments
 (0)