Skip to content

Commit 1601392

Browse files
committed
CI: Add two tests in parallel
1 parent a566d38 commit 1601392

File tree

1 file changed

+48
-7
lines changed

1 file changed

+48
-7
lines changed

.circleci/config.yml

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
paths:
127127
- docker/*
128128

129-
test:
129+
test_pytest:
130130
machine:
131131
# Ubuntu 14.04 with Docker 17.10.0-ce
132132
image: circleci/classic:201710-02
@@ -167,11 +167,48 @@ jobs:
167167
bash /home/circleci/nipype/.circleci/pytests.sh
168168
- store_artifacts:
169169
path: /home/circleci/work/tests
170-
- persist_to_workspace:
171-
root: /tmp
172-
paths:
173-
- docker/*
174170

171+
test_py2_fmri_spm_nested_multiproc_l2:
172+
machine:
173+
# Ubuntu 14.04 with Docker 17.10.0-ce
174+
image: circleci/classic:201710-02
175+
working_directory: /home/circleci/nipype
176+
steps:
177+
- attach_workspace:
178+
at: /tmp
179+
- run:
180+
name: Load saved Docker images.
181+
no_output_timeout: 60m
182+
command: |
183+
docker load < /tmp/docker/nipype-base-latest-py36-py27.tar.gz
184+
- checkout:
185+
path: /home/circleci/nipype
186+
- run:
187+
name: Download test data
188+
no_output_timeout: 20m
189+
working_directory: /home/circleci/examples
190+
environment:
191+
OSF_NIPYPE_URL: "https://files.osf.io/v1/resources/nefdp/providers/osfstorage"
192+
command: |
193+
export DATA_NIPYPE_TUTORIAL_URL="${OSF_NIPYPE_URL}/57f4739cb83f6901ed94bf21"
194+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_TUTORIAL_URL" | tar xj
195+
196+
export DATA_NIPYPE_FSL_COURSE="${OSF_NIPYPE_URL}/57f472cf9ad5a101f977ecfe"
197+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_COURSE" | tar xz
198+
199+
export DATA_NIPYPE_FSL_FEEDS="${OSF_NIPYPE_URL}/57f473066c613b01f113e7af"
200+
curl -sSL --retry 5 --connect-timeout 15 "$DATA_NIPYPE_FSL_FEEDS" | tar xz
201+
- run:
202+
name: Run tests
203+
no_output_timeout: 2h
204+
environment:
205+
WORKDIR: /home/circleci/work
206+
command: |
207+
mkdir -p "$WORKDIR"
208+
chmod -R 777 "$WORKDIR"
209+
bash /home/circleci/nipype/.circleci/test_py2_fmri_spm_nested_multiproc_l2.sh
210+
- store_artifacts:
211+
path: /home/circleci/work/tests
175212

176213
deploy:
177214
docker:
@@ -213,12 +250,16 @@ workflows:
213250
- build_images:
214251
requires:
215252
- compare_base_dockerfiles
216-
- test:
253+
- test_pytest:
254+
requires:
255+
- build_images
256+
- test_py2_fmri_spm_nested_multiproc_l2:
217257
requires:
218258
- build_images
219259
- deploy:
220260
filters:
221261
branches:
222262
only: master
223263
requires:
224-
- test
264+
- test_pytest
265+
- test_py2_fmri_spm_nested_multiproc_l2

0 commit comments

Comments
 (0)