forked from astropy/astroquery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (61 loc) · 3.17 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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=development NUMPY_VERSION=1.7.1 SETUP_CMD='test'
matrix:
include:
- python: 2.7
# opdeps needed because the matplotlib sphinx extension requires them
env: ASTROPY_VERSION=development NUMPY_VERSION=1.8.0 SETUP_CMD='build_sphinx -w -n'
# try alternate numpy versions with the latest development astropy
- python: 2.7
env: ASTROPY_VERSION=development NUMPY_VERSION=1.8.0 SETUP_CMD='test'
- python: 2.7
env: ASTROPY_VERSION=development NUMPY_VERSION=1.6.2 SETUP_CMD='test'
- python: 2.7
env: ASTROPY_VERSION=development NUMPY_VERSION=1.5.1 SETUP_CMD='test'
- python: 3.3
env: ASTROPY_VERSION=development NUMPY_VERSION=1.8.0 SETUP_CMD='test'
# numpy < 1.6 does not work on py 3.x
# try latest developer version of astropy
# - python: 2.7
# 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'
# try a stable version of astropy, which requires monkeypatching
#- python: 2.7
# env: ASTROPY_VERSION=stable 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
- sudo apt-get install -qq python-sphinx
- sudo apt-get install -qq cython
- sudo apt-get install -qq libatlas-dev
- sudo apt-get install -qq liblapack-dev
- sudo apt-get install -qq gfortran
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq python-sphinx; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq graphviz; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq texlive-latex-extra; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq dvipng; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install -qq python-matplotlib; fi
install:
- export PYTHONIOENCODING=UTF8 # just in case
- pip -q install --upgrade "numpy==$NUMPY_VERSION" --use-mirrors
- pip -q install --upgrade Cython --use-mirrors
- pip -q install --upgrade requests # needed for multipart queries (fermilat)
- pip -q install --upgrade lxml
- pip -q install --upgrade keyring
#- if [[ $SETUP_CMD == build_sphinx* ]]; then pip -q install sphinx==1.1.3 --use-mirrors; fi
#- if [[ $SETUP_CMD == build_sphinx* ]]; then pip -q install matplotlib --use-mirrors; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then bash .travis.pip.wheel $TRAVIS_PYTHON_VERSION Sphinx 1.1.3 -q -p; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then bash .travis.pip.wheel $TRAVIS_PYTHON_VERSION matplotlib 1.2.1 -q; fi
- if [[ $ASTROPY_VERSION == stable ]]; then pip -q install astropy --use-mirrors; fi
- if [[ $ASTROPY_VERSION == development ]]; then pip -q install git+http://github.com/astropy/astropy.git#egg=astropy --use-mirrors; fi
script:
- python setup.py $SETUP_CMD