-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
40 lines (39 loc) · 1.27 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
language: python
# use container-based infrastructure
sudo: required
services:
- docker
cache:
pip: true
timeout: 1000
python:
- "3.5"
bundler_args: --retry 9
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install --upgrade setuptools
- cd test/moxunit_testsuite
# Download MoxUnit for unit testing
- git clone https://github.com/MOxUnit/MOxUnit.git
- ls
- cd ..
# Download data
- cd data
- wget https://neurovault.org/collections/4249/download
- unzip download
- mv NIDM-Results\ 1.3.0\ examples\ -\ nidmfsl\ 2.0.1\ and\ SPM12\ r6906/* .
- rm -r NIDM-Results\ 1.3.0\ examples\ -\ nidmfsl\ 2.0.1\ and\ SPM12\ r6906/
- cd ../..
- ls
script:
# Run docker snapshot of dev octave (until 4.4 is released)
- did=$(sudo docker run -ti -d --rm -v `pwd`:/spmviewer cmaumet/octave-spm)
# Run tests in Octave
- sudo docker exec -t -i $did bash -c "sudo chmod 755 /spmviewer/test/moxunit_testsuite/runTest.sh; sudo /spmviewer/test/moxunit_testsuite/runTest.sh"
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]"
- sudo docker pull cmaumet/octave-spm