Skip to content

Commit 422b2cd

Browse files
committed
add tests
1 parent 3bc612a commit 422b2cd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
git config --global user.email "[email protected]"
4949
5050
- run:
51-
name: Run tests (w/o datalad)
51+
name: Run tests (w/o DataLad)
5252
environment:
5353
TEMPLATEFLOW_USE_DATALAD: 0
5454
TEMPLATEFLOW_HOME: "/tmp/data/templateflow"
@@ -69,7 +69,7 @@ jobs:
6969
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
7070
7171
- run:
72-
name: Run tests (w/ datalad)
72+
name: Run tests (w/ DataLad)
7373
environment:
7474
TEMPLATEFLOW_USE_DATALAD: 1
7575
command: |
@@ -78,6 +78,20 @@ jobs:
7878
virtualenv venv
7979
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
8080
81+
- run:
82+
name: Run tests (w/ DataLad, bypassed via S3)
83+
environment:
84+
TEMPLATEFLOW_USE_DATALAD: 1
85+
TEMPLATEFLOW_HOME: /home/circleci/.cache/templateflow-init
86+
command: |
87+
pyenv global 3.5.2
88+
virtualenv venv
89+
cd /tmp/src/templateflow
90+
pip install -e .
91+
python -c "from templateflow import api"
92+
export TEMPLATEFLOW_USE_DATALAD=0
93+
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
94+
8195
- run:
8296
name: Test packaging
8397
command: |

0 commit comments

Comments
 (0)