forked from astropy/pyregion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 1.64 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
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
env:
# try all python versions with the latest stable numpy and astropy
- ASTROPY_VERSION=stable NUMPY_VERSION=1.7.1 SETUP_CMD='test'
matrix:
include:
# try latest developer version of astropy
- python: 2.7
env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='test'
- python: 3.2
env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='test'
- python: 3.3
env: ASTROPY_VERSION=development NUMPY_VERSION=1.7.1 SETUP_CMD='test'
before_install:
# We do this to make sure we get the dependencies so pip works below
- sudo apt-get update -qq
- sudo apt-get install -qq python-numpy python-sphinx cython libatlas-dev liblapack-dev gfortran
- sudo apt-get install -qq python-sphinx graphviz texlive-latex-extra dvipng python-matplotlib
install:
- export PYTHONIOENCODING=UTF8 # just in case
- pip -q install --upgrade "numpy==$NUMPY_VERSION" --use-mirrors
- pip -q install --upgrade Cython --use-mirrors
# Recent version of jinja2 and markupsafe not compatible with 3.2??
- if [[ $TRAVIS_PYTHON_VERSION == '3.2'* ]]; then pip -q install --use-mirrors "markupsafe<0.15" "jinja2<2.7"; fi
- pip -q install sphinx==1.1.3 --use-mirrors
- pip -q install matplotlib --use-mirrors
- if [[ $ASTROPY_VERSION == stable ]]; then pip install astropy --use-mirrors; fi
- if [[ $ASTROPY_VERSION == development ]]; then pip install git+http://github.com/astropy/astropy.git#egg=astropy --use-mirrors; fi
script:
- python setup.py install
- python test.py
- cd doc
- python make.py