|
1 | 1 | # vim ft=yaml |
| 2 | +# Multiple lines can be made a single "virtual line" because of how Travis |
| 3 | +# munges each line before executing it to print out the exit status. It's okay |
| 4 | +# for it to be on multiple physical lines, so long as you remember: - There |
| 5 | +# can't be any leading "-"s - All newlines will be removed, so use ";"s |
2 | 6 | language: python |
3 | 7 | python: |
4 | | - - "2.5" |
5 | 8 | - "2.6" |
6 | 9 | - "2.7" |
7 | 10 | - "3.2" |
8 | 11 | env: |
9 | | - NUMPY_VER=1.6.1 |
| 12 | + NUMPY_VER=1.7.0 |
10 | 13 | before_install: |
11 | | - - mkdir builds |
12 | | - - pushd builds |
13 | | - - curl -O http://pypi.python.org/packages/source/n/numpy/numpy-${NUMPY_VER}.tar.gz |
14 | | - - tar zxf numpy-${NUMPY_VER}.tar.gz |
15 | | - - cd numpy-${NUMPY_VER} |
16 | | - - python setup.py install |
17 | | - - popd |
| 14 | + # Travis virtualenvs have numpy for Python 2 |
| 15 | + - if [[ "${TRAVIS_PYTHON_VERSION:0:1}" > "2" ]]; then |
| 16 | + mkdir builds; |
| 17 | + pushd builds; |
| 18 | + curl -O http://pypi.python.org/packages/source/n/numpy/numpy-${NUMPY_VER}.tar.gz; |
| 19 | + tar zxf numpy-${NUMPY_VER}.tar.gz; |
| 20 | + cd numpy-${NUMPY_VER}; |
| 21 | + python setup.py install; |
| 22 | + popd; |
| 23 | + fi |
| 24 | + # pydicom <= 0.9.8 doesn't install on python 3 |
| 25 | + - if [[ "${TRAVIS_PYTHON_VERSION:0:1}" < "3" ]]; then |
| 26 | + easy_install -U pydicom; |
| 27 | + fi |
18 | 28 | # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors |
19 | 29 | 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 |
28 | 30 | - python setup.py install |
29 | 31 | # command to run tests, e.g. python setup.py test |
30 | 32 | script: |
31 | 33 | # Change into an innocuous directory and find tests from installation |
32 | 34 | - mkdir for_testing |
33 | 35 | - cd for_testing |
34 | | - - nosetests `python -c "import os; import nibabel; print(os.path.dirname(nibabel.__file__))"` |
| 36 | + - nosetests --with-doctest `python -c "import os; import nibabel; print(os.path.dirname(nibabel.__file__))"` |
0 commit comments