Skip to content

Commit d204848

Browse files
committed
CI: Move codecov into CI step
1 parent c1487e7 commit d204848

13 files changed

+10
-45
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ _get_codecov: &_get_codecov
9595
command: |
9696
pip install --no-cache-dir codecov
9797
98+
_run_codecov: &_run_codecov
99+
name: Run codecov
100+
command: |
101+
codecov --file "$WORKDIR/tests/coverage*.xml" --root "$HOME/nipype" --flags unittests -e "$CIRCLE_JOB"
102+
codecov --file "$WORKDIR/tests/smoketest*.xml" --root "$HOME/nipype" --flags smoketests -e "$CIRCLE_JOB"
103+
98104
99105
version: 2
100106
jobs:
@@ -164,6 +170,7 @@ jobs:
164170
no_output_timeout: 30m
165171
environment: *test_environment
166172
command: bash /home/circleci/nipype/.circleci/test_py3_docs.sh
173+
- run: *_run_codecov
167174
- store_artifacts: *store_artifacts_kwds
168175

169176
test_py3_fmri_fsl_spm:
@@ -201,6 +208,7 @@ jobs:
201208
no_output_timeout: 40m
202209
environment: *test_environment
203210
command: bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_linear_4d.sh
211+
- run: *_run_codecov
204212
- store_artifacts: *store_artifacts_kwds
205213

206214
test_py3_fmri_spm_dartel_multiproc:
@@ -228,6 +236,7 @@ jobs:
228236
no_output_timeout: 30m
229237
environment: *test_environment
230238
command: bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_dartel_multiproc_l2.sh
239+
- run: *_run_codecov
231240
- store_artifacts: *store_artifacts_kwds
232241

233242
test_fmri_spm_nested_multiproc:
@@ -256,6 +265,7 @@ jobs:
256265
no_output_timeout: 30m
257266
environment: *test_environment
258267
command: bash /home/circleci/nipype/.circleci/test_py2_fmri_spm_nested_multiproc_l2.sh
268+
- run: *_run_codecov
259269
- store_artifacts: *store_artifacts_kwds
260270
- run:
261271
name: Save Docker images to workspace

.circleci/test_complete.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

.circleci/test_py2_fmri_spm_nested_multiproc_l2.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work -e NIPYPE_NUMBER_OF_CPUS=4 -e NIPYPE_RESOURCE_MONITOR=1 "${DOCKER_IMAGE}:py27" /usr/bin/run_examples.sh fmri_spm_nested MultiProc /data/examples/ l2pipeline
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py2_pytest.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work -e CI_SKIP_TEST=1 -e NIPYPE_RESOURCE_MONITOR=1 -e FSL_COURSE_DATA="/data/examples/nipype-fsl_course_data" "${DOCKER_IMAGE}:py27" /usr/bin/run_pytests.sh
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_docs.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /src/nipype/doc "${DOCKER_IMAGE}:py36" /usr/bin/run_builddocs.sh
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_fsl_feeds_linear_l1.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh fmri_fsl_feeds Linear /data/examples/ l1pipeline
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_fsl_reuse_linear_l1.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh fmri_fsl_reuse Linear /data/examples/ level1_workflow
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_spm_dartel_multiproc_l1.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh fmri_spm_dartel MultiProc /data/examples/ level1
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_spm_dartel_multiproc_l2.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh fmri_spm_dartel MultiProc /data/examples/ l2pipeline
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_spm_linear_3d.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh test_spm Linear /data/examples/ workflow3d
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_spm_linear_4d.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh test_spm Linear /data/examples/ workflow4d
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_fmri_spm_nested_multiproc_l1.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work -e NIPYPE_NUMBER_OF_CPUS=4 "${DOCKER_IMAGE}:py36" /usr/bin/run_examples.sh fmri_spm_nested MultiProc /data/examples/ level1
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

.circleci/test_py3_pytest.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
. $DIR/test_init.sh
66

77
docker run --rm=false -t -v $WORKDIR:/work -v $HOME/examples:/data/examples:ro -w /work -e CI_SKIP_TEST=1 -e NIPYPE_RESOURCE_MONITOR=1 -e FSL_COURSE_DATA="/data/examples/nipype-fsl_course_data" "${DOCKER_IMAGE}:py36" /usr/bin/run_pytests.sh
8-
exitcode=$?
9-
10-
. $DIR/test_complete.sh

0 commit comments

Comments
 (0)