Skip to content

Commit 72414fd

Browse files
committed
CI: Attempt to grab data and tools for testing
1 parent 2f9fccc commit 72414fd

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.travis.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
os: linux
33
dist: xenial
44

5+
addons:
6+
apt:
7+
packages:
8+
- libgomp1
9+
10+
511
language: python
612
cache: pip
713

@@ -16,6 +22,9 @@ env:
1622
- CHECK_TYPE="tests"
1723
- INSTALL_DEPENDS="pip setuptools"
1824
- DEPENDS="-r min-requirements.txt"
25+
- MRI_ROBUST_TEMPLATE=sx2n7/providers/osfstorage/5e825301d0e35400ebb481f2
26+
- FS_LICENSE=/tmp/freesurfer/license.txt
27+
- TEST_DATA_HOME=/tmp/data
1928

2029
before_install:
2130
- python -m pip install --upgrade pip virtualenv
@@ -30,9 +39,26 @@ install:
3039
- if [ -n "$DEPENDS" ]; then python -m pip install $DEPENDS; fi
3140
- python -m pip install .
3241
- python -c "import sdcflows; print(sdcflows.__version__)"
42+
- travis_retry python -m pip install "sdcflows[$CHECK_TYPE]"
3343

3444
before_script:
35-
- travis_retry python -m pip install "sdcflows[$CHECK_TYPE]"
45+
# External dependencies
46+
- travis_retry bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh);
47+
- sudo apt-get update
48+
- sudo apt-get install -y --no-install-recommends git-annex-standalone fsl afni ants
49+
- curl https://files.osf.io/v1/resources/$MRI_ROBUST_TEMPLATE?direct > mri_robust_template
50+
- sudo install mri_robust_template /usr/local/bin
51+
- mkdir /tmp/freesurfer
52+
- echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > $FS_LICENSE
53+
- python -m pip install datalad
54+
# Data dependencies
55+
- python -c "from templateflow import api as tfapi;
56+
tfapi.get('MNI152NLin2009cAsym', resolution=2, desc='brain', suffix='mask');
57+
tfapi.get('MNI152NLin2009cAsym', resolution=2, desc='fMRIPrep', suffix='boldref');"
58+
- mkdir -p $TEST_DATA_HOME
59+
- datalad install -rg ///openneuro/ds001600 $TEST_DATA_HOME/ds001600
60+
- curl https://files.osf.io/v1/resources/9sy2a/providers/osfstorage/5d44b940bcd6d900198ed6be/?zip= --output testdata.zip
61+
- unzip testdata.zip $TEST_DATA_HOME/testdata
3662

3763
script:
3864
- pytest -n 2 -v --cov sdcflows --cov-report xml:cov.xml --doctest-modules sdcflows

0 commit comments

Comments
 (0)