Skip to content

Commit 4561dad

Browse files
committed
TEST: make travis test with latest pydicom
Thanks to Nathaniel Smith for working out how to do shell conditionals in the travis.yml file (See charlton/charlton repository)
1 parent 038c16a commit 4561dad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ before_install:
1717
- popd
1818
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
1919
install:
20+
# This has to be on a single "virtual line" because of how Travis
21+
# munges each line before executing it to print out the exit status.
22+
# It's okay for it to be on multiple physical lines, so long as you remember:
23+
# - There can't be any leading "-"s
24+
# - All newlines will be removed, so use ";"s
25+
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" \< "3" ]; then
26+
easy_install -U pydicom;
27+
fi
2028
- python setup.py install
2129
# command to run tests, e.g. python setup.py test
2230
script:
2331
# Change into an innocuous directory and find tests from installation
24-
- cd doc
32+
- mkdir for_testing
33+
- cd for_testing
2534
- nosetests `python -c "import os; import nibabel; print(os.path.dirname(nibabel.__file__))"`

0 commit comments

Comments
 (0)