forked from msharrock/deepbleed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.12 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
language: python
python:
- "3.7"
dist: bionic
before_install:
- wget --no-check-certificate https://archive.data.jhu.edu/api/access/datafile/1311?gbrecs=true -O 01.tar.xz
- tar xvf 01.tar.xz
- rm 01.tar.xz
- mkdir -p input
- mv 01/BRAIN_1_Anonymized.nii.gz input/image.nii.gz
- rm -rf 01/
- mkdir -p output
- wget -O weights.zip https://www.dropbox.com/s/v2ptd9mfpo13gcb/mistie_2-20200122T175000Z-001.zip?dl=1
- unzip -j weights.zip
- for i in _data-00001-of-00002 _data-00000-of-00002 _index; do out=`echo ${i} | sed "s/_/weights./"`; mv ${i} ${out}; done
install:
- cd ${TRAVIS_BUILD_DIR}
- sudo apt-get update
- sudo apt-get install libc6
- pip install -r requirements.txt
- pip3 install https://github.com/ANTsX/ANTsPy/releases/download/v0.1.8/antspyx-0.1.7-cp37-cp37m-linux_x86_64.whl
# Install FSL using Neurodebian
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
- sudo apt-get -y update
- sudo apt-get -y install fsl-core
- source /etc/fsl/fsl.sh;
# command to run tests
script:
- python3 predict.py --verbose --indir ./input --outdir ./output --weights weights