-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.43 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
# vim ft=yaml
# Multiple lines can be made a single "virtual line" because of the way that
# Travis munges each line before executing it to print out the exit status.
# It's okay for it to be on multiple physical lines, so long as you remember:
# - There can't be any leading "-"s - All newlines will be removed, so use
# ";"s
language: python
python:
- 2.6
- 3.2
- 3.3
- 3.4
matrix:
include:
- python: 2.7
env:
- COVERAGE=--with-coverage
before_install:
- sudo apt-get install -qq libatlas-dev libatlas-base-dev gfortran libpng-dev
- pip install --no-index -f http://wheels2.astropy.org -f https://nipy.bic.berkeley.edu/scipy_installers/travis scipy matplotlib;
- pip install sympy
- pip install nibabel
- if [ "${COVERAGE}" == "--with-coverage" ]; then
pip install coverage;
pip install coveralls;
fi
# command to install dependencies
# e.g. pip install -r requirements.txt # --use-mirrors
install:
- python setup.py install
# command to run tests, e.g. python setup.py test
script:
# Change into an innocuous directory and find tests from installation
- mkdir for_testing
- cd for_testing
- if [ "${COVERAGE}" == "--with-coverage" ]; then cp ../.coveragerc .; fi
- $PYTHON ../tools/nipnost $COVERAGE `python -c "import os; import nipy; print(os.path.dirname(nipy.__file__))"`
after_success:
- if [ "${COVERAGE}" == "--with-coverage" ]; then coveralls; fi