forked from physiopy/phys2bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
179 lines (170 loc) · 4.93 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# global default
container:
image: continuumio/miniconda3
cpu: 1
makeenv_task:
env:
matrix:
PYTHON: 3.6
PYTHON: 3.7
PYTHON: 3.8
PYTHON: 3.9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- conda create -yq --prefix $PWD/conda-env python=$PYTHON
- source activate $PWD/conda-env
- pip install -e '.[test,doc]'
activate_script: source activate $PWD/conda-env
Unittest_task:
depends_on:
- makeenv
env:
matrix:
PYTHON: 3.6
PYTHON: 3.7
PYTHON: 3.8
PYTHON: 3.9
CODECOV_TOKEN: eb5758aa-6d0c-4981-a22a-16c663e2aaa9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- source activate $PWD/conda-env
Running_unit_tests_script:
- apt-get install -y make curl
- source activate $PWD/conda-env
- make unittest
- bash <(curl -s https://codecov.io/bash)
Integration_task:
depends_on:
- makeenv
env:
matrix:
PYTHON: 3.6
PYTHON: 3.7
PYTHON: 3.8
PYTHON: 3.9
CODECOV_TOKEN: eb5758aa-6d0c-4981-a22a-16c663e2aaa9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- source activate $PWD/conda-env
Running_integration_tests_script:
- apt-get install -y make curl tree tar
- source activate $PWD/conda-env
- PATH=/home/test_user/.local/bin:$PATH
- make integration
- bash <(curl -s https://codecov.io/bash)
- tar -zcvf integration_${PYTHON}.tar.gz /tmp/pytest-of-root/pytest-0
integration_artifacts:
path: "integration_${PYTHON}.tar.gz"
Style_check_task:
depends_on:
- makeenv
env:
PYTHON: 3.9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- source activate $PWD/conda-env
Lintin_script:
- apt-get install -y make
- source activate $PWD/conda-env
- make lint
Build_docs_task:
depends_on:
- makeenv
env:
PYTHON: 3.9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- source activate $PWD/conda-env
Build_documentation_script:
- apt-get install -y make tar
- source activate $PWD/conda-env
- make -C docs html
docs_artifacts:
path: "docs/_build/html/**.html"
type: text/html
Bids_validate_task:
depends_on:
- makeenv
env:
PYTHON: 3.9
environment_cache:
folder: conda-env
fingerprint_script:
- echo $PYTHON
- cat setup.py
populate_script:
- source activate $PWD/conda-env
Generate_enviroment_script:
- apt-get install -yqq wget curl tree
- curl -sL https://deb.nodesource.com/setup_15.x | bash -
- apt-get install -yqq nodejs
- npm install -g bids-validator
Dowload data and execute pipeline_script:
- wget -O Test1_multifreq_onescan.txt https://osf.io/7se4t/download
- wget -O heur_test_multifreq.py https://osf.io/ehx6j/download
- source activate $PWD/conda-env
- PATH=/home/test_user/.local/bin:$PATH
- pip install -e '.[test,doc]' && phys2bids -in Test1_multifreq_onescan.txt -chtrig 1 -ntp 30 -tr 1.2 -outdir physio_bids -heur heur_test_multifreq.py -sub 006 -ses 01
Run validator_script:
- wget -O sub-006_ses-01_task-test_rec-biopac_run-01_bold.json https://osf.io/6j8f7/download
- wget -O sub-006_ses-01_task-test_rec-biopac_run-01_bold.nii.gz https://osf.io/wus2p/download
- mv sub-006_ses-01_task-test_rec-biopac_run-01_bold* physio_bids/sub-006/ses-01/func
- tree physio_bids
- bids-validator physio_bids
Integration_windows_task:
windows_container:
dockerfile: .ci/w_miniconda
cpu: 1
env:
matrix:
PYTHON: 3.9
PYTHON: 3.8
PYTHON: 3.7
PYTHON: 3.6
populate_script:
- conda create -yq --prefix C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env python=%PYTHON%
- activate C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env
- pip install -e .[test,doc]
Running_integration_script:
- choco install make -y --no-progress
- activate C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env
- pip install msvc-runtime
- make integration
Unittest_windows_task:
windows_container:
dockerfile: .ci/w_miniconda
cpu: 1
env:
matrix:
PYTHON: 3.9
PYTHON: 3.8
PYTHON: 3.7
PYTHON: 3.6
populate_script:
- conda create -yq --prefix C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env python=%PYTHON%
- activate C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env
- pip install -e .[test,doc]
Running_unittest_script:
- choco install make -y --no-progress
- activate C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\conda-env
- make unittest