forked from astropy/astropy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (43 loc) · 2.1 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
40
41
42
43
44
45
46
47
48
language: python
python:
- 2.7
- 2.6
- 3.2
env:
- NUMPY_VERSION=1.6.2 SETUP_CMD='test' OPTIONAL_DEPS=false
- NUMPY_VERSION=1.5.1 SETUP_CMD='test' OPTIONAL_DEPS=false
- NUMPY_VERSION=1.4.1 SETUP_CMD='test' OPTIONAL_DEPS=false
matrix:
include:
- python: 2.7
env: NUMPY_VERSION=1.6.2 SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 3.2
env: NUMPY_VERSION=1.6.2 SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 2.7
env: NUMPY_VERSION=1.6.2 SETUP_CMD='egg_info' OPTIONAL_DEPS=false
- python: 3.2
env: NUMPY_VERSION=1.6.2 SETUP_CMD='egg_info' OPTIONAL_DEPS=false
- python: 2.7
env: NUMPY_VERSION=1.6.2 SETUP_CMD='build_sphinx -w' OPTIONAL_DEPS=false
exclude:
- python: 3.2
env: NUMPY_VERSION=1.5.1 SETUP_CMD='test' OPTIONAL_DEPS=false
- python: 3.2
env: NUMPY_VERSION=1.4.1 SETUP_CMD='test' OPTIONAL_DEPS=false
before_install:
# We do this to make sure we get the dependencies so pip works below
- sudo apt-get update -qq
- if [[ $SETUP_CMD != egg_info ]]; then sudo apt-get install -qq python-numpy cython libatlas-dev liblapack-dev gfortran; fi
- if $OPTIONAL_DEPS; then sudo apt-get install -qq python-scipy libhdf5-serial-1.8.4 libhdf5-serial-dev; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq python-sphinx graphviz texlive-latex-extra dvipng; fi
install:
- export PYTHONIOENCODING=UTF8 # just in case
- pip install --upgrade "numpy==$NUMPY_VERSION" -q --use-mirrors
- if $OPTIONAL_DEPS; then pip install scipy -q --use-mirrors; fi
- if $OPTIONAL_DEPS; then pip install h5py -q --use-mirrors; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then pip -q install sphinx --use-mirrors; fi
- if [[ $SETUP_CMD != egg_info ]]; then pip -q install Cython --use-mirrors; fi
script:
- export OPEN_FILES=""
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]] || [[ $TRAVIS_PYTHON_VERSION == "3.2" ]] && [[ $NUMPY_VERSION == "1.6.2" ]] && [[ $SETUP_CMD == "test" ]]; then export OPEN_FILES=--open-files; fi
- python setup.py $SETUP_CMD $OPEN_FILES