-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
171 lines (171 loc) · 7.91 KB
/
.travis.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
language: python
# use container-based infrastructure
sudo: required
services:
- docker
cache:
timeout: 1000
directories:
- test/data
python:
- "3.5"
bundler_args: --retry 9
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
# Install git-lfs
- cd ..
- curl -sLo - https://github.com/github/git-lfs/releases/download/v1.4.1/git-lfs-linux-amd64-1.4.1.tar.gz | tar xzvf -
- export PATH=$PATH:`pwd`/git-lfs-1.4.1
- git lfs install
# Download data.
- cd SwE-toolbox/test/data
- if ! [ -d .git ]; then git clone https://github.com/NISOx-BDI/SwE-toolbox-testdata.git .; fi
# Delete any previous changes (retry because lfs might download files)
- git checkout master
- travis_retry git reset --hard origin/master
# A second time to allow for 3 more retries as "--retry 9" does not seem to be
# taken into account by Travis CI
- travis_retry git reset --hard origin/master
- cd ../..
jobs:
include:
# Each '-' with the same indentation as this comment is a job that is run in parallel in the
# results generation stage.
- stage: Results generation
env:
- testname='p_vox_t_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'vox', 't', 'nii')"
- env:
- testname='p_vox_f_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'vox', 'f', 'nii')"
- env:
- testname='wb_vox_t_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'vox', 't', 'nii')"
- env:
- testname='wb_vox_f_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'vox', 'f', 'nii')"
- env:
- testname='wb_clus_t_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 't', 'nii')"
- env:
- testname='wb_clus_f_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 'f', 'nii')"
- env:
- testname='wb_tfce_t_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'tfce', 't', 'nii')"
- env:
- testname='wb_tfce_f_nii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'tfce', 'f', 'nii')"
- env:
- testname='p_dat_t_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dat', 't', 'mat')"
- env:
- testname='p_dat_f_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dat', 'f', 'mat')"
- env:
- testname='wb_dat_t_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dat', 't', 'mat')"
- env:
- testname='wb_dat_f_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dat', 'f', 'mat')"
- env:
- testname='wb_clus_t_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 't', 'mat')"
- env:
- testname='wb_clus_f_mat'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 'f', 'mat')"
- env:
- testname='p_dpx_t_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dpx', 't', 'gii')"
- env:
- testname='p_dpx_f_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dpx', 'f', 'gii')"
- env:
- testname='wb_dpx_t_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dpx', 't', 'gii')"
- env:
- testname='wb_dpx_f_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dpx', 'f', 'gii')"
- env:
- testname='wb_clus_t_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 't', 'gii')"
- env:
- testname='wb_clus_f_gii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 'f', 'gii')"
- env:
- testname='p_dpx_t_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dpx', 't', 'cii')"
- env:
- testname='p_dpx_f_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('p', 'dpx', 'f', 'cii')"
- env:
- testname='wb_dpx_t_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dpx', 't', 'cii')"
- env:
- testname='wb_dpx_f_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'dpx', 'f', 'cii')"
- env:
- testname='wb_clus_t_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 't', 'cii')"
- env:
- testname='wb_clus_f_cii'
script:
- did=$(sudo docker run -ti -d --rm -v `pwd`:/swe cmaumet/octave-spm)
- sudo docker exec -t -i $did octave --no-window-system --eval "addpath('/swe/test');runTest('wb', 'clus', 'f', 'cii')"
before_install:
# Update docker version
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- git config --global user.name "TravisCI"
- git config --global user.email "[email protected]"
- docker pull cmaumet/octave-spm