Skip to content

Commit 79dca4f

Browse files
committed
CI: Full test suite
1 parent a4dac1b commit 79dca4f

6 files changed

+362
-0
lines changed

.circleci/config.yml

Lines changed: 322 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,300 @@ jobs:
199199
- store_artifacts:
200200
path: /home/circleci/work/tests
201201

202+
test_py3_fmri_fsl_feeds_linear_l1:
203+
machine:
204+
# Ubuntu 14.04 with Docker 17.10.0-ce
205+
image: circleci/classic:201710-02
206+
working_directory: /home/circleci/nipype
207+
steps:
208+
- attach_workspace:
209+
at: /tmp
210+
- run:
211+
name: Load saved Docker images.
212+
no_output_timeout: 60m
213+
command: |
214+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
215+
- checkout:
216+
path: /home/circleci/nipype
217+
- run:
218+
name: Download test data
219+
no_output_timeout: 20m
220+
working_directory: /home/circleci/examples
221+
environment:
222+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
223+
command: |
224+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
225+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
226+
227+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
228+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
229+
230+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
231+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
232+
- run:
233+
name: Run tests
234+
no_output_timeout: 2h
235+
environment:
236+
WORKDIR: /home/circleci/work
237+
command: |
238+
mkdir -p "$WORKDIR"
239+
chmod -R 777 "$WORKDIR"
240+
bash /home/circleci/nipype/.circleci/test_py3_fmri_fsl_feeds_linear_l1.sh
241+
- store_artifacts:
242+
path: /home/circleci/work/tests
243+
244+
test_py3_fmri_fsl_reuse_linear_l1:
245+
machine:
246+
# Ubuntu 14.04 with Docker 17.10.0-ce
247+
image: circleci/classic:201710-02
248+
working_directory: /home/circleci/nipype
249+
steps:
250+
- attach_workspace:
251+
at: /tmp
252+
- run:
253+
name: Load saved Docker images.
254+
no_output_timeout: 60m
255+
command: |
256+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
257+
- checkout:
258+
path: /home/circleci/nipype
259+
- run:
260+
name: Download test data
261+
no_output_timeout: 20m
262+
working_directory: /home/circleci/examples
263+
environment:
264+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
265+
command: |
266+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
267+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
268+
269+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
270+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
271+
272+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
273+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
274+
- run:
275+
name: Run tests
276+
no_output_timeout: 2h
277+
environment:
278+
WORKDIR: /home/circleci/work
279+
command: |
280+
mkdir -p "$WORKDIR"
281+
chmod -R 777 "$WORKDIR"
282+
bash /home/circleci/nipype/.circleci/test_py3_fmri_fsl_reuse_linear_l1.sh
283+
- store_artifacts:
284+
path: /home/circleci/work/tests
285+
286+
test_py3_fmri_spm_dartel_linear_l1:
287+
machine:
288+
# Ubuntu 14.04 with Docker 17.10.0-ce
289+
image: circleci/classic:201710-02
290+
working_directory: /home/circleci/nipype
291+
steps:
292+
- attach_workspace:
293+
at: /tmp
294+
- run:
295+
name: Load saved Docker images.
296+
no_output_timeout: 60m
297+
command: |
298+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
299+
- checkout:
300+
path: /home/circleci/nipype
301+
- run:
302+
name: Download test data
303+
no_output_timeout: 20m
304+
working_directory: /home/circleci/examples
305+
environment:
306+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
307+
command: |
308+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
309+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
310+
311+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
312+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
313+
314+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
315+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
316+
- run:
317+
name: Run tests
318+
no_output_timeout: 2h
319+
environment:
320+
WORKDIR: /home/circleci/work
321+
command: |
322+
mkdir -p "$WORKDIR"
323+
chmod -R 777 "$WORKDIR"
324+
bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_dartel_linear_l1.sh
325+
- store_artifacts:
326+
path: /home/circleci/work/tests
327+
328+
test_py3_fmri_spm_dartel_linear_l2:
329+
machine:
330+
# Ubuntu 14.04 with Docker 17.10.0-ce
331+
image: circleci/classic:201710-02
332+
working_directory: /home/circleci/nipype
333+
steps:
334+
- attach_workspace:
335+
at: /tmp
336+
- run:
337+
name: Load saved Docker images.
338+
no_output_timeout: 60m
339+
command: |
340+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
341+
- checkout:
342+
path: /home/circleci/nipype
343+
- run:
344+
name: Download test data
345+
no_output_timeout: 20m
346+
working_directory: /home/circleci/examples
347+
environment:
348+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
349+
command: |
350+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
351+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
352+
353+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
354+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
355+
356+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
357+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
358+
- run:
359+
name: Run tests
360+
no_output_timeout: 2h
361+
environment:
362+
WORKDIR: /home/circleci/work
363+
command: |
364+
mkdir -p "$WORKDIR"
365+
chmod -R 777 "$WORKDIR"
366+
bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_dartel_linear_l2.sh
367+
- store_artifacts:
368+
path: /home/circleci/work/tests
369+
370+
test_py3_fmri_spm_linear_3d:
371+
machine:
372+
# Ubuntu 14.04 with Docker 17.10.0-ce
373+
image: circleci/classic:201710-02
374+
working_directory: /home/circleci/nipype
375+
steps:
376+
- attach_workspace:
377+
at: /tmp
378+
- run:
379+
name: Load saved Docker images.
380+
no_output_timeout: 60m
381+
command: |
382+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
383+
- checkout:
384+
path: /home/circleci/nipype
385+
- run:
386+
name: Download test data
387+
no_output_timeout: 20m
388+
working_directory: /home/circleci/examples
389+
environment:
390+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
391+
command: |
392+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
393+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
394+
395+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
396+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
397+
398+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
399+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
400+
- run:
401+
name: Run tests
402+
no_output_timeout: 2h
403+
environment:
404+
WORKDIR: /home/circleci/work
405+
command: |
406+
mkdir -p "$WORKDIR"
407+
chmod -R 777 "$WORKDIR"
408+
bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_linear_3d.sh
409+
- store_artifacts:
410+
path: /home/circleci/work/tests
411+
412+
test_py3_fmri_spm_linear_4d:
413+
machine:
414+
# Ubuntu 14.04 with Docker 17.10.0-ce
415+
image: circleci/classic:201710-02
416+
working_directory: /home/circleci/nipype
417+
steps:
418+
- attach_workspace:
419+
at: /tmp
420+
- run:
421+
name: Load saved Docker images.
422+
no_output_timeout: 60m
423+
command: |
424+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
425+
- checkout:
426+
path: /home/circleci/nipype
427+
- run:
428+
name: Download test data
429+
no_output_timeout: 20m
430+
working_directory: /home/circleci/examples
431+
environment:
432+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
433+
command: |
434+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
435+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
436+
437+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
438+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
439+
440+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
441+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
442+
- run:
443+
name: Run tests
444+
no_output_timeout: 2h
445+
environment:
446+
WORKDIR: /home/circleci/work
447+
command: |
448+
mkdir -p "$WORKDIR"
449+
chmod -R 777 "$WORKDIR"
450+
bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_linear_4d.sh
451+
- store_artifacts:
452+
path: /home/circleci/work/tests
453+
454+
test_py3_fmri_spm_nested_multiproc_l1:
455+
machine:
456+
# Ubuntu 14.04 with Docker 17.10.0-ce
457+
image: circleci/classic:201710-02
458+
working_directory: /home/circleci/nipype
459+
steps:
460+
- attach_workspace:
461+
at: /tmp
462+
- run:
463+
name: Load saved Docker images.
464+
no_output_timeout: 60m
465+
command: |
466+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
467+
- checkout:
468+
path: /home/circleci/nipype
469+
- run:
470+
name: Download test data
471+
no_output_timeout: 20m
472+
working_directory: /home/circleci/examples
473+
environment:
474+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
475+
command: |
476+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
477+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
478+
479+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
480+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
481+
482+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
483+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
484+
- run:
485+
name: Run tests
486+
no_output_timeout: 2h
487+
environment:
488+
WORKDIR: /home/circleci/work
489+
command: |
490+
mkdir -p "$WORKDIR"
491+
chmod -R 777 "$WORKDIR"
492+
bash /home/circleci/nipype/.circleci/test_py3_fmri_spm_nested_multiproc_l1.sh
493+
- store_artifacts:
494+
path: /home/circleci/work/tests
495+
202496
deploy:
203497
docker:
204498
- image: docker:17.10.0-ce-git
@@ -245,10 +539,38 @@ workflows:
245539
- test_py2_fmri_spm_nested_multiproc_l2:
246540
requires:
247541
- build_images
542+
- test_py3_fmri_fsl_feeds_linear_l1:
543+
requires:
544+
- build_images
545+
- test_py3_fmri_fsl_reuse_linear_l1:
546+
requires:
547+
- build_images
548+
- test_py3_fmri_spm_dartel_linear_l1:
549+
requires:
550+
- build_images
551+
- test_py3_fmri_spm_dartel_linear_l2:
552+
requires:
553+
- build_images
554+
- test_py3_fmri_spm_linear_3d:
555+
requires:
556+
- build_images
557+
- test_py3_fmri_spm_linear_4d:
558+
requires:
559+
- build_images
560+
- test_py3_fmri_spm_nested_multiproc_l1:
561+
requires:
562+
- build_images
248563
- deploy:
249564
filters:
250565
branches:
251566
only: master
252567
requires:
253568
- test_pytest
254569
- test_py2_fmri_spm_nested_multiproc_l2
570+
- test_py3_fmri_fsl_feeds_linear_l1
571+
- test_py3_fmri_fsl_reuse_linear_l1
572+
- test_py3_fmri_spm_dartel_linear_l1
573+
- test_py3_fmri_spm_dartel_linear_l2
574+
- test_py3_fmri_spm_linear_3d
575+
- test_py3_fmri_spm_linear_4d
576+
- test_py3_fmri_spm_nested_multiproc_l1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
. test_init.sh
4+
5+
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 Linear /data/examples/ level1
6+
exitcode=$?
7+
8+
. test_complete.sh
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
. test_init.sh
4+
5+
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 Linear /data/examples/ l2pipeline
6+
exitcode=$?
7+
8+
. test_complete.sh
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
. test_init.sh
4+
5+
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
6+
exitcode=$?
7+
8+
. test_complete.sh
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
. test_init.sh
4+
5+
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
6+
exitcode=$?
7+
8+
. test_complete.sh
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
. test_init.sh
4+
5+
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
6+
exitcode=$?
7+
8+
. test_complete.sh

0 commit comments

Comments
 (0)