Skip to content

Commit 8e6049e

Browse files
committed
fix(tests)
1 parent e9ce041 commit 8e6049e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.circleci/config.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,46 @@ jobs:
5656
- "/tmp/cache"
5757

5858
- run:
59-
name: Run tests (w/o DataLad)
59+
name: Run tests (w/ DataLad)
6060
environment:
61-
TEMPLATEFLOW_USE_DATALAD: 0
62-
TEMPLATEFLOW_HOME: "/tmp/data/templateflow"
61+
TEMPLATEFLOW_USE_DATALAD: 1
6362
command: |
63+
unset TEMPLATEFLOW_HOME
6464
pyenv global 3.5.2
6565
virtualenv venv
66-
export TEMPLATEFLOW_HOME="/tmp/data/templateflow"
6766
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
6867
6968
- run:
70-
name: Run tests (pulling from S3)
69+
name: Update TemplateFlow skeleton
70+
command: |
71+
cd $HOME/.cache/templateflow/
72+
find . -type d -not -path "*/\.*" -exec mkdir -p /tmp/skel/{} \;
73+
for i in $( find . -type f -not -path "*/\.*" ); do cp $i /tmp/skel/${i:2}; done
74+
find . -type l -not -path "*/\.*" -exec touch /tmp/skel/{} \;
75+
cd /tmp/skel
76+
mkdir -p /tmp/resources
77+
zip -r /tmp/resources/templateflow-skel.zip */
78+
79+
- store_artifacts:
80+
path: /tmp/resources/templateflow-skel.zip
81+
82+
- run:
83+
name: Run tests (w/o DataLad)
7184
environment:
7285
TEMPLATEFLOW_USE_DATALAD: 0
73-
TEMPLATEFLOW_HOME: "/tmp/data/templateflow-S3"
86+
TEMPLATEFLOW_HOME: "/tmp/data/templateflow"
7487
command: |
7588
pyenv global 3.5.2
7689
virtualenv venv
90+
export TEMPLATEFLOW_HOME="/tmp/data/templateflow"
7791
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
7892
7993
- run:
80-
name: Run tests (w/ DataLad)
94+
name: Run tests (pulling from S3)
8195
environment:
82-
TEMPLATEFLOW_USE_DATALAD: 1
96+
TEMPLATEFLOW_USE_DATALAD: 0
97+
TEMPLATEFLOW_HOME: "/tmp/data/templateflow-S3"
8398
command: |
84-
unset TEMPLATEFLOW_HOME
8599
pyenv global 3.5.2
86100
virtualenv venv
87101
pytest -vsx --doctest-modules /tmp/src/templateflow/templateflow
@@ -111,25 +125,11 @@ jobs:
111125
python setup.py sdist
112126
twine check dist/*
113127
114-
- run:
115-
name: Update TemplateFlow skeleton
116-
command: |
117-
cd $HOME/.cache/templateflow/
118-
find . -type d -not -path "*/\.*" -exec mkdir -p /tmp/skel/{} \;
119-
for i in $( find . -type f -not -path "*/\.*" ); do cp $i /tmp/skel/${i:2}; done
120-
find . -type l -not -path "*/\.*" -exec touch /tmp/skel/{} \;
121-
cd /tmp/skel
122-
mkdir -p /tmp/resources
123-
zip -r /tmp/resources/templateflow-skel.zip */
124-
125128
- persist_to_workspace:
126129
root: /tmp
127130
paths:
128131
- resources
129132

130-
- store_artifacts:
131-
path: /tmp/resources/templateflow-skel.zip
132-
133133
deploy_pypi:
134134
machine:
135135
image: circleci/classic:201711-01

0 commit comments

Comments
 (0)