12
12
- checkout
13
13
- restore_cache :
14
14
keys :
15
- - env-v3 -{{ .Branch }}-
16
- - env-v3 -master-
17
- - env-v3 -
15
+ - env-v5 -{{ .Branch }}-
16
+ - env-v5 -master-
17
+ - env-v5 -
18
18
- run :
19
19
name : Setup git-annex
20
20
command : |
@@ -29,17 +29,14 @@ jobs:
29
29
- run :
30
30
name : Setup DataLad
31
31
command : |
32
- export PY3=$(pyenv versions | grep '3\.' |
33
- sed -e 's/.* 3\./3./' -e 's/ .*//')
34
- pyenv local $PY3
35
- python -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4"
36
- python -m pip install --no-cache-dir -U datalad datalad-osf
32
+ python3 -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4"
33
+ python3 -m pip install --no-cache-dir -U datalad datalad-osf
37
34
38
35
- save_cache :
39
- key : env-v3 -{{ .Branch }}-{{ .BuildNum }}
36
+ key : env-v5 -{{ .Branch }}-{{ .BuildNum }}
40
37
paths :
41
38
- /opt/circleci/git-annex.linux
42
- - /opt/circleci/.pyenv/versions/3.9.4
39
+ - /opt/circleci/.pyenv/versions/3.12.2
43
40
44
41
- restore_cache :
45
42
keys :
49
46
- run :
50
47
name : Install test data from GIN
51
48
command : |
52
- export PY3=$(pyenv versions | grep '3\.' |
53
- sed -e 's/.* 3\./3./' -e 's/ .*//')
54
- pyenv local $PY3
55
- export PATH=/opt/circleci/git-annex.linux:$PATH
49
+ export PATH=/opt/circleci/.pyenv/versions/3.12.2/bin/:/opt/circleci/git-annex.linux:$PATH
56
50
mkdir -p /tmp/data
57
51
cd /tmp/data
58
52
datalad install -r https://gin.g-node.org/oesteban/nitransforms-tests
98
92
name : Build Docker image & push to registry
99
93
no_output_timeout : 60m
100
94
command : |
101
- export PY3=$(pyenv versions | grep '3\.' |
102
- sed -e 's/.* 3\./3./' -e 's/ .*//')
103
- pyenv local $PY3
104
95
e=1 && for i in {1..5}; do
105
96
docker build --rm --cache-from=nitransforms:latest \
106
97
-t nitransforms:latest \
@@ -123,9 +114,6 @@ jobs:
123
114
- run :
124
115
name : Check version packaged in Docker image
125
116
command : |
126
- export PY3=$(pyenv versions | grep '3\.' |
127
- sed -e 's/.* 3\./3./' -e 's/ .*//')
128
- pyenv local $PY3
129
117
THISVERSION=${CIRCLE_TAG:-$(python3 setup.py --version)}
130
118
INSTALLED_VERSION=$(\
131
119
docker run -it --rm --entrypoint=python nitransforms \
0 commit comments